Filesystem Tests

This commit is contained in:
cschwinne
2020-05-08 22:53:59 +02:00
parent dfc99faea8
commit 8bb70fb1b0
6 changed files with 90 additions and 54 deletions

View File

@@ -1598,7 +1598,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)