Преглед на файлове

Fix UDP v6 RgbCct color skew

Anders Melchiorsen преди 7 години
родител
ревизия
b891b50f15
променени са 1 файла, в които са добавени 1 реда и са изтрити 5 реда
  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);
   }
 }