diff --git a/Arduino/McLighting/request_handlers.h b/Arduino/McLighting/request_handlers.h index 9e73264..75b9e83 100644 --- a/Arduino/McLighting/request_handlers.h +++ b/Arduino/McLighting/request_handlers.h @@ -467,7 +467,7 @@ void handleSetWS2812FXMode(uint8_t * mypayload) { mode = OFF; } if (strcmp((char *) &mypayload[1], "on") == 0) { - mode = HOLD; + mode = SET; } } } diff --git a/Arduino/McLighting/rest_api.h b/Arduino/McLighting/rest_api.h index 8597c0e..37e8d6b 100644 --- a/Arduino/McLighting/rest_api.h +++ b/Arduino/McLighting/rest_api.h @@ -231,6 +231,9 @@ DBG_OUTPUT_PORT.println(rgbcolor); }); + server.on("/get_modes", []() { + getModesJSON(); + }); server.on("/status", []() { getStatusJSON(); @@ -342,6 +345,11 @@ getStatusJSON(); }); + server.on("/on", []() { + mode = SET; + getStatusJSON(); + }); + server.on("/set", []() { prevmode = HOLD; ws2812fx_mode = FX_MODE_STATIC; @@ -349,7 +357,3 @@ getArgs(); getStatusJSON(); }); - - server.on("/get_modes", []() { - getModesJSON(); - }); diff --git a/Arduino/McLighting/version_info.ino b/Arduino/McLighting/version_info.ino index cd572df..873bfe9 100644 --- a/Arduino/McLighting/version_info.ino +++ b/Arduino/McLighting/version_info.ino @@ -186,5 +186,6 @@ * * 29 September 2019 * Version Bump to 3.0.0.BETA1 - * further code changes + * further code changes + * bugfixes */