Bugfix for mode change when using websockets API.

This commit is contained in:
Tobias Blum 2016-06-05 00:41:50 +02:00
parent c44a9c3cb2
commit fcbde5e234

View file

@ -168,7 +168,8 @@ void webSocketEvent(uint8_t num, WStype_t type, uint8_t * payload, size_t lenght
}
strip.show();
DBG_OUTPUT_PORT.printf("WS: Set all leds to main color: [%u] [%u] [%u]\n", main_color.red, main_color.green, main_color.blue);
mode = HOLD;
exit_func = true;
mode = ALL;
webSocket.sendTXT(num, "OK");
}
@ -190,7 +191,8 @@ void webSocketEvent(uint8_t num, WStype_t type, uint8_t * payload, size_t lenght
}
strip.show();
}
mode = HOLD;
exit_func = true;
mode = ALL;
webSocket.sendTXT(num, "OK");
}