Преглед изворни кода

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);
   }
 }