mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-22 18:26:30 +00:00
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))) {
|
if (LightColorEntry(color, strlen(color))) {
|
||||||
Ws2812SetColor(idx, light_entry_color[0], light_entry_color[1], light_entry_color[2], light_entry_color[3]);
|
Ws2812SetColor(idx, light_entry_color[0], light_entry_color[1], light_entry_color[2], light_entry_color[3]);
|
||||||
idx++;
|
idx++;
|
||||||
if (idx >= Settings.light_pixels) break;
|
if (idx > Settings.light_pixels) break;
|
||||||
} else {
|
} else {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user