Fix lightning effect never using last 2 LEDs

Disable Websockets by default (temporarily)
pull/1023/head
cschwinne 2020-07-02 00:49:37 +02:00
rodzic 409303d0f5
commit 9947c51af7
3 zmienionych plików z 5 dodań i 3 usunięć

Wyświetl plik

@ -2,6 +2,8 @@
### Development versions after 0.10.0 release
#### Build 2007020
#### Build 2006251
- Added `SV=2` to HTTP API, allow selecting single segment only

Wyświetl plik

@ -1599,7 +1599,7 @@ uint16_t WS2812FX::mode_oscillate(void)
uint16_t WS2812FX::mode_lightning(void)
{
uint16_t ledstart = random16(SEGLEN); // Determine starting location of flash
uint16_t ledlen = random16(SEGLEN -1 -ledstart); // Determine length of flash (not to go beyond NUM_LEDS-1)
uint16_t ledlen = 1 + random16(SEGLEN -ledstart); // Determine length of flash (not to go beyond NUM_LEDS-1)
uint8_t bri = 255/random8(1, 3);
if (SEGENV.step == 0)

Wyświetl plik

@ -8,7 +8,7 @@
*/
// version code in format yymmddb (b = daily build)
#define VERSION 2006290
#define VERSION 2007020
// ESP8266-01 (blue) got too little storage space to work with all features of WLED. To use it, you must use ESP8266 Arduino Core v2.4.2 and the setting 512K(No SPIFFS).
@ -30,7 +30,7 @@
#endif
#define WLED_ENABLE_ADALIGHT // saves 500b only
//#define WLED_ENABLE_DMX // uses 3.5kb (use LEDPIN other than 2)
#define WLED_ENABLE_WEBSOCKETS
//#define WLED_ENABLE_WEBSOCKETS
#define WLED_DISABLE_FILESYSTEM // SPIFFS is not used by any WLED feature yet
//#define WLED_ENABLE_FS_SERVING // Enable sending html file from SPIFFS before serving progmem version