mirror of https://github.com/arendst/Tasmota.git
Fix WS2812 led command
Fix WS2812 led command to address last pixel (#5015)
This commit is contained in:
parent
ced019eaa5
commit
eab6be8bcb
|
@ -1203,7 +1203,7 @@ boolean LightCommand(void)
|
|||
if (LightColorEntry(color, strlen(color))) {
|
||||
Ws2812SetColor(idx, light_entry_color[0], light_entry_color[1], light_entry_color[2], light_entry_color[3]);
|
||||
idx++;
|
||||
if (idx >= Settings.light_pixels) break;
|
||||
if (idx > Settings.light_pixels) break;
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue