Chris Mullins před 8 roky
rodič
revize
a71cf5f9c9
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      lib/Udp/V5MiLightUdpServer.cpp

+ 1 - 1
lib/Udp/V5MiLightUdpServer.cpp

@@ -32,7 +32,7 @@ void V5MiLightUdpServer::handleCommand(uint8_t command, uint8_t commandArg) {
     this->lastGroup = cctGroup;
 
     // Night mode commands are same as off commands with MSB set
-    if (command & 0x80 == 0x80) {
+    if ((command & 0x80) == 0x80) {
       client->enableNightMode();
     } else {
       client->updateStatus(cctCommandToStatus(command));