ソースを参照

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