Przeglądaj źródła

Merge pull request #320 from amelchio/udpv6-rgbcct-colors

Fix UDP v6 RgbCct color skew
Chris Mullins 7 lat temu
rodzic
commit
6eee8a951f
1 zmienionych plików z 1 dodań i 5 usunięć
  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);
   }
 }