From b4ce029b39489013de1012e9cea7278942f54a71 Mon Sep 17 00:00:00 2001 From: NimmLor Date: Fri, 20 Nov 2020 01:15:39 +0100 Subject: [PATCH] fixed compile error #81 --- esp8266-fastled-iot-webserver.ino | 2 ++ 1 file changed, 2 insertions(+) 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); });