Skip to content

Commit

Permalink
Add support for AirPods Pro 2 (USB-C) (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrBeanCpp authored Oct 1, 2023
1 parent b3088bc commit 57c5683
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/Core/AppleCP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ Core::AirPods::Model AirPods::GetModel(uint16_t modelId)
return Core::AirPods::Model::AirPods_Pro;
case 0x2014:
return Core::AirPods::Model::AirPods_Pro_2;
case 0x2024:
return Core::AirPods::Model::AirPods_Pro_2_USB_C;
case 0x200A:
return Core::AirPods::Model::AirPods_Max;
// case 0x2003:
Expand Down
3 changes: 3 additions & 0 deletions Source/Core/Base.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ enum class Model : uint32_t {
AirPods_3,
AirPods_Pro,
AirPods_Pro_2,
AirPods_Pro_2_USB_C,
AirPods_Max,
Powerbeats_3,
Beats_X,
Expand Down Expand Up @@ -96,6 +97,8 @@ inline QString Helper::ToString<Core::AirPods::Model>(const Core::AirPods::Model
return "AirPods Pro";
case Core::AirPods::Model::AirPods_Pro_2:
return "AirPods Pro 2";
case Core::AirPods::Model::AirPods_Pro_2_USB_C:
return "AirPods Pro 2 (USB-C)";
case Core::AirPods::Model::AirPods_Max:
return "AirPods Max";
case Core::AirPods::Model::Powerbeats_3:
Expand Down
1 change: 1 addition & 0 deletions Source/Gui/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,7 @@ void MainWindow::SetAnimation(std::optional<Core::AirPods::Model> model)
videoSize = QSize{900, 450};
break;
case Core::AirPods::Model::AirPods_Pro_2:
case Core::AirPods::Model::AirPods_Pro_2_USB_C:
media = "qrc:/Resource/Video/AirPods_Pro_2.avi";
videoSize = QSize{900, 450};
break;
Expand Down

0 comments on commit 57c5683

Please sign in to comment.