diff --git a/Arduino/McLighting/McLighting.ino b/Arduino/McLighting/McLighting.ino index 219594d5..3ae97fb0 100644 --- a/Arduino/McLighting/McLighting.ino +++ b/Arduino/McLighting/McLighting.ino @@ -381,7 +381,7 @@ void setup() { sprintf(strip_size, "%d", WS2812FXStripSettings.stripSize); sprintf(led_pin, "%d", WS2812FXStripSettings.pin); - WiFiManagerParameter custom_strip_size("strip_size", "Number of LEDs", strip_size, 3); + WiFiManagerParameter custom_strip_size("strip_size", "Number of LEDs", strip_size, 5); WiFiManagerParameter custom_led_pin("led_pin", "LED GPIO", led_pin, 2); //Local intialization. Once its business is done, there is no need to keep it around diff --git a/Arduino/McLighting/request_handlers.h b/Arduino/McLighting/request_handlers.h index accca4eb..23e774aa 100644 --- a/Arduino/McLighting/request_handlers.h +++ b/Arduino/McLighting/request_handlers.h @@ -1492,12 +1492,12 @@ bool readStripConfigFS(void) { configFile.readBytes(buf.get(), size); DynamicJsonDocument jsonBuffer(JSON_OBJECT_SIZE(4)+300); DeserializationError error = deserializeJson(jsonBuffer, buf.get()); - DBG_OUTPUT_PORT.print("Config: "); + DBG_OUTPUT_PORT.print("neoconfig.json: "); if (!error) { - DBG_OUTPUT_PORT.println(" Parsed!"); + DBG_OUTPUT_PORT.println("Parsed!"); JsonObject json = jsonBuffer.as(); serializeJson(json, DBG_OUTPUT_PORT); - WS2812FXStripSettings.stripSize = (json["pixel_count"].as()) ? json["pixel_count"].as() : NUMLEDS; + WS2812FXStripSettings.stripSize = (json["pixel_count"].as()) ? json["pixel_count"].as() : NUMLEDS; WS2812FXStripSettings.RGBOrder = json["rgb_order"].as(); WS2812FXStripSettings.pin = json["pin"].as(); updateFS = false; @@ -1510,7 +1510,7 @@ bool readStripConfigFS(void) { DBG_OUTPUT_PORT.println("Failed to open /config.json"); } } else { - DBG_OUTPUT_PORT.println("Coudnt find config.json"); + DBG_OUTPUT_PORT.println("Couldn't find config.json"); } //end read updateFS = false;