Chris Mullins пре 8 година
родитељ
комит
36b9e16023
1 измењених фајлова са 4 додато и 3 уклоњено
  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);
+    }
   }
 }