Skip to content

Commit

Permalink
Identify the product id of AirPods Max
Browse files Browse the repository at this point in the history
  • Loading branch information
SpriteOvO committed Apr 4, 2022
1 parent c9db0ad commit 2c54e9c
Show file tree
Hide file tree
Showing 2 changed files with 5 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 @@ -50,6 +50,8 @@ Core::AirPods::Model AirPods::GetModel(uint16_t modelId)
return Core::AirPods::Model::AirPods_3;
case 0x200E:
return Core::AirPods::Model::AirPods_Pro;
case 0x200A:
return Core::AirPods::Model::AirPods_Max;
// case 0x2003:
// return Core::AirPods::Model::Powerbeats_3;
// case 0x2005:
Expand Down
3 changes: 3 additions & 0 deletions Source/Core/Base.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ enum class Model : uint32_t {
AirPods_2,
AirPods_3,
AirPods_Pro,
AirPods_Max,
Powerbeats_3,
Beats_X,
Beats_Solo3,
Expand All @@ -91,6 +92,8 @@ inline QString Helper::ToString<Core::AirPods::Model>(const Core::AirPods::Model
return "AirPods 3";
case Core::AirPods::Model::AirPods_Pro:
return "AirPods Pro";
case Core::AirPods::Model::AirPods_Max:
return "AirPods Max";
case Core::AirPods::Model::Powerbeats_3:
return "Powerbeats 3";
case Core::AirPods::Model::Beats_X:
Expand Down

0 comments on commit 2c54e9c

Please sign in to comment.