Просмотр исходного кода

More Apple Device Colors

Added Aipods Max and a few more.
xAstroBoy 2 лет назад
Родитель
Сommit
2f5251fa38
1 измененных файлов с 33 добавлено и 2 удалено
  1. 33 2
      ble_spam/protocols/continuity.c

+ 33 - 2
ble_spam/protocols/continuity.c

@@ -13,6 +13,13 @@ typedef struct {
 static const ContinuityColor colors_white[] = {
 static const ContinuityColor colors_white[] = {
     {0x00, "White"},
     {0x00, "White"},
 };
 };
+static const ContinuityColor colors_airpods_max[] = {
+    {0x00, "White"},
+    {0x02, "Red"},
+    {0x03, "Blue"},
+    {0x0F, "Black"},
+    {0x11, "Light Green"},
+};
 static const ContinuityColor colors_beats_flex[] = {
 static const ContinuityColor colors_beats_flex[] = {
     {0x00, "White"},
     {0x00, "White"},
     {0x01, "Black"},
     {0x01, "Black"},
@@ -48,7 +55,15 @@ static const ContinuityColor colors_beats_solo_3[] = {
 static const ContinuityColor colors_powerbeats_3[] = {
 static const ContinuityColor colors_powerbeats_3[] = {
     {0x00, "White"},
     {0x00, "White"},
     {0x01, "Black"},
     {0x01, "Black"},
-};
+    {0x0B, "Gray/Blue"},
+    {0x0C, "Gray/Red"},
+    {0x0D, "Gray/Green"},
+    {0x12, "Red"},
+    {0x13, "Swamp Green"},
+    {0x14, "Gray"},
+    {0x15, "Deep Blue"},
+    {0x17, "Dark with Gold Logo"},
+    {}};
 static const ContinuityColor colors_powerbeats_pro[] = {
 static const ContinuityColor colors_powerbeats_pro[] = {
     {0x00, "White"},
     {0x00, "White"},
     {0x02, "Yellowish Green"},
     {0x02, "Yellowish Green"},
@@ -66,10 +81,18 @@ static const ContinuityColor colors_beats_solo_pro[] = {
 static const ContinuityColor colors_beats_studio_buds[] = {
 static const ContinuityColor colors_beats_studio_buds[] = {
     {0x00, "White"},
     {0x00, "White"},
     {0x01, "Black"},
     {0x01, "Black"},
+    {0x02, "Red"},
+    {0x03, "Blue"},
+    {0x04, "Pink"},
+    {0x06, "Silver"},
 };
 };
 static const ContinuityColor colors_beats_x[] = {
 static const ContinuityColor colors_beats_x[] = {
     {0x00, "White"},
     {0x00, "White"},
     {0x01, "Black"},
     {0x01, "Black"},
+    {0x02, "Blue"},
+    {0x05, "Gray"},
+    {0x1D, "Pink"},
+    {0x25, "Dark/Red"},
 };
 };
 static const ContinuityColor colors_beats_studio_3[] = {
 static const ContinuityColor colors_beats_studio_3[] = {
     {0x00, "White"},
     {0x00, "White"},
@@ -93,6 +116,14 @@ static const ContinuityColor colors_beats_studio_pro[] = {
 static const ContinuityColor colors_beats_fit_pro[] = {
 static const ContinuityColor colors_beats_fit_pro[] = {
     {0x00, "White"},
     {0x00, "White"},
     {0x01, "Black"},
     {0x01, "Black"},
+    {0x02, "Pink"},
+    {0x03, "Grey/White"},
+    {0x04, "Full Pink"},
+    {0x05 "Neon Green"},
+    {0x06, "Night Blue"},
+    {0x07, "Light Pink"},
+    {0x08, "Brown"},
+    {0x09, "Dark Brown"},
 };
 };
 static const ContinuityColor colors_beats_studio_buds_[] = {
 static const ContinuityColor colors_beats_studio_buds_[] = {
     {0x00, "Black"},
     {0x00, "Black"},
@@ -109,7 +140,7 @@ static const struct {
     const uint8_t colors_count;
     const uint8_t colors_count;
 } pp_models[] = {
 } pp_models[] = {
     {0x0E20, "AirPods Pro", colors_white, COUNT_OF(colors_white)},
     {0x0E20, "AirPods Pro", colors_white, COUNT_OF(colors_white)},
-    {0x0A20, "AirPods Max", colors_white, COUNT_OF(colors_white)},
+    {0x0A20, "AirPods Max", colors_airpods_max, COUNT_OF(colors_airpods_max)},
     {0x0055, "Airtag", colors_white, COUNT_OF(colors_white)},
     {0x0055, "Airtag", colors_white, COUNT_OF(colors_white)},
     {0x0030, "Hermes Airtag", colors_white, COUNT_OF(colors_white)},
     {0x0030, "Hermes Airtag", colors_white, COUNT_OF(colors_white)},
     {0x0220, "AirPods", colors_white, COUNT_OF(colors_white)},
     {0x0220, "AirPods", colors_white, COUNT_OF(colors_white)},