Explorar o código

nextMode instead of set mode to 0

Chris Mullins %!s(int64=8) %!d(string=hai) anos
pai
achega
d4b189aedb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/Udp/V5MiLightUdpServer.cpp

+ 1 - 1
lib/Udp/V5MiLightUdpServer.cpp

@@ -57,7 +57,7 @@ void V5MiLightUdpServer::handleCommand(uint8_t command, uint8_t commandArg) {
         break;
 
       case UDP_RGBW_DISCO_MODE:
-        pressButton(RGBW_DISCO_MODE);
+        client->nextMode();
         break;
 
       case UDP_RGBW_SPEED_DOWN: