diff --git a/esp8266-fastled-iot-webserver.ino b/esp8266-fastled-iot-webserver.ino index 1a7c031a..d43770fe 100644 --- a/esp8266-fastled-iot-webserver.ino +++ b/esp8266-fastled-iot-webserver.ino @@ -1015,7 +1015,9 @@ void setup() { webServer.on("/pattern", HTTP_POST, []() { String value = webServer.arg("value"); + #if DEVICE_TYPE == 2 switchedTimePattern = true; + #endif setPattern(value.toInt()); sendInt(currentPatternIndex); });