Merge branch 'feature/save_state'

This commit is contained in:
Tobias Blum
2018-01-06 22:40:03 +01:00
3 changed files with 94 additions and 11 deletions
+3 -1
View File
@@ -17,7 +17,9 @@ void getArgs() {
ws2812fx_speed = 196;
}
ws2812fx_mode = constrain(server.arg("m").toInt(), 0, strip.getModeCount()-1);
if (server.arg("m") != "") {
ws2812fx_mode = constrain(server.arg("m").toInt(), 0, strip.getModeCount()-1);
}
main_color.red = constrain(main_color.red, 0, 255);
main_color.green = constrain(main_color.green, 0, 255);