Browse Source

arugh, why.

Chris Mullins 8 years ago
parent
commit
36b9e16023
1 changed files with 4 additions and 3 deletions
  1. 4 3
      lib/MiLight/MiLightClient.cpp

+ 4 - 3
lib/MiLight/MiLightClient.cpp

@@ -171,9 +171,10 @@ void MiLightClient::unpair(const MiLightRadioType type, const uint16_t deviceId,
     delay(1);
     updateColorWhite(deviceId, groupId);
   } else if (type == CCT) {
-    // Leading nibble is a "held" modifier
-    uint8_t button = 0x10 | getCctStatusButton(groupId, ON);
-    pressButton(CCT, deviceId, groupId, button);
+    for (int i = 0; i < 5; i++) {
+      updateStatus(CCT, deviceId, groupId, ON);
+      delay(1);
+    }
   }
 }