Ver código fonte

Fixed the switched ON/OFF for {all}

If you send the UDP signal for "ALL ON" (42 00 55 - All On) it turns everything off

If you Send the UDP signal for "ALL OFF" (41 00 55 - All Off) it turns everything on

Changed the names around to keep the numbering in order.
phigmeta 8 anos atrás
pai
commit
654b4f5380
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      lib/Udp/V5MiLightUdpServer.h

+ 2 - 2
lib/Udp/V5MiLightUdpServer.h

@@ -23,8 +23,8 @@ enum MiLightUdpCommands {
   UDP_CCT_BRIGHTNESS_DOWN    = 0x34,
   UDP_CCT_BRIGHTNESS_UP      = 0x3C,
   
-  UDP_RGBW_ALL_ON            = 0x41,
-  UDP_RGBW_ALL_OFF           = 0x42,
+  UDP_RGBW_ALL_OFF           = 0x41,
+  UDP_RGBW_ALL_ON            = 0x42,
   UDP_RGBW_SPEED_UP          = 0x43, 
   UDP_RGBW_SPEED_DOWN        = 0x44, 
   UDP_RGBW_GROUP_1_ON        = 0x45,