Chris Mullins %!s(int64=8) %!d(string=hai) anos
pai
achega
a71cf5f9c9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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));