100th commit!

Updated readme
Fixed possibility of ledcount being set higher than the max LEDCOUNT
(that would probably crash the module)
This commit is contained in:
cschwinne 2018-01-11 00:28:44 +01:00
parent 45430aafdc
commit 31d84311d0
3 changed files with 2 additions and 10 deletions

View File

@ -3,8 +3,6 @@
WLED is a fast and (relatively) secure implementation of an ESP8266 webserver to control NeoPixel (WS2812B) LEDs!
Now also with experimental ESP32 support.
Uses ESP Arduino core version 2.3.0 (latest as of December 2017).
### Features: (V0.5dev)
- RGB, HSB, and brightness sliders
- Settings page - configuration over network
@ -25,12 +23,6 @@ Uses ESP Arduino core version 2.3.0 (latest as of December 2017).
- Realtime UDP Packet Control (WARLS) possible
- Client HTML UI controlled
### Compile settings:
- Board: WeMos D1 mini (untested with other HW, should work though)
- CPU frequency: 80 MHz
- Flash size : 4MB (3MB SPIFFS)
- Upload speed: 921600
### Quick start guide and documentation:
See the [wiki](https://github.com/Aircoookie/WLED/wiki)!

View File

@ -173,7 +173,7 @@ void loadSettingsFromEEPROM(bool first)
if (apchannel > 13 || apchannel < 1) apchannel = 1;
aphide = EEPROM.read(228);
if (aphide > 1) aphide = 1;
ledcount = EEPROM.read(229);
ledcount = EEPROM.read(229); if (ledcount > LEDCOUNT) ledcount = LEDCOUNT;
notifyButton = EEPROM.read(230);
//231 was notifyNightlight
buttonEnabled = EEPROM.read(232);

View File

@ -119,7 +119,7 @@ void handleSettingsSet()
if (server.hasArg("LEDCN"))
{
int i = server.arg("LEDCN").toInt();
if (i >= 0 && i <= 255) ledcount = i;
if (i >= 0 && i <= LEDCOUNT) ledcount = i;
strip.setLedCount(ledcount);
}
if (server.hasArg("CBEOR"))