Parcourir la source

Fix UDP v6 RgbCct color skew

Anders Melchiorsen il y a 7 ans
Parent
commit
b891b50f15
1 fichiers modifiés avec 1 ajouts et 5 suppressions
  1. 1 5
      lib/Udp/V6RgbCctCommandHandler.cpp

+ 1 - 5
lib/Udp/V6RgbCctCommandHandler.cpp

@@ -98,10 +98,6 @@ void V6RgbCctCommandHandler::handleUpdateColor(MiLightClient *client, uint32_t c
   for (int i = 3; i >= 0; i--) {
     const uint8_t argValue = (color >> (i*8)) & 0xFF;
 
-    if (argValue == 0) {
-      return;
-    }
-
-    client->updateColorRaw(argValue);
+    client->updateColorRaw(argValue + 0xF6);
   }
 }