Skip to content

Commit

Permalink
100th commit!
Browse files Browse the repository at this point in the history
Updated readme
Fixed possibility of ledcount being set higher than the max LEDCOUNT
(that would probably crash the module)
  • Loading branch information
Aircoookie committed Jan 10, 2018
1 parent 45430aa commit 31d8431
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
8 changes: 0 additions & 8 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)!
Expand Down
2 changes: 1 addition & 1 deletion wled00/wled01_eeprom.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion wled00/wled03_set.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down

0 comments on commit 31d8431

Please sign in to comment.