diff --git a/firmware/firmware.ino b/firmware/firmware.ino index 55169d1..45ea629 100644 --- a/firmware/firmware.ino +++ b/firmware/firmware.ino @@ -198,7 +198,8 @@ void read_eeprom_config() { //********************************// -void setup() { +void setup() +{ EEPROM.begin(256); Serial.begin(SERIAL_BAUD_RATE); @@ -245,7 +246,8 @@ void setup() { //********************************// -void loop() { +void loop() +{ server.handleClient(); lightEngine(); @@ -332,7 +334,7 @@ void init_webserver() { DynamicJsonDocument root(1024); root["on"] = light_state[light]; root["bri"] = bri[light]; - root["bricur"] = (int)current_bri[light]; + root["curbri"] = (int)current_bri[light]; String output; serializeJson(root, output); server.send(200, "text/plain", output); @@ -532,7 +534,7 @@ void init_webserver() { http_content += "