Chris Mullins il y a 8 ans
Parent
commit
a71cf5f9c9
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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));