V3.0.0.BETA1

* bugfix
This commit is contained in:
bpohvoodoo
2019-09-29 13:40:31 +02:00
parent 341c469b49
commit bc783f774c
3 changed files with 11 additions and 6 deletions
+1 -1
View File
@@ -467,7 +467,7 @@ void handleSetWS2812FXMode(uint8_t * mypayload) {
mode = OFF; mode = OFF;
} }
if (strcmp((char *) &mypayload[1], "on") == 0) { if (strcmp((char *) &mypayload[1], "on") == 0) {
mode = HOLD; mode = SET;
} }
} }
} }
+8 -4
View File
@@ -231,6 +231,9 @@
DBG_OUTPUT_PORT.println(rgbcolor); DBG_OUTPUT_PORT.println(rgbcolor);
}); });
server.on("/get_modes", []() {
getModesJSON();
});
server.on("/status", []() { server.on("/status", []() {
getStatusJSON(); getStatusJSON();
@@ -342,6 +345,11 @@
getStatusJSON(); getStatusJSON();
}); });
server.on("/on", []() {
mode = SET;
getStatusJSON();
});
server.on("/set", []() { server.on("/set", []() {
prevmode = HOLD; prevmode = HOLD;
ws2812fx_mode = FX_MODE_STATIC; ws2812fx_mode = FX_MODE_STATIC;
@@ -349,7 +357,3 @@
getArgs(); getArgs();
getStatusJSON(); getStatusJSON();
}); });
server.on("/get_modes", []() {
getModesJSON();
});
+2 -1
View File
@@ -186,5 +186,6 @@
* *
* 29 September 2019 * 29 September 2019
* Version Bump to 3.0.0.BETA1 * Version Bump to 3.0.0.BETA1
* further code changes * further code changes
* bugfixes
*/ */