Fix WS2812 led command

Fix WS2812 led command to address last pixel (#5015)
This commit is contained in:
Theo Arends 2019-01-24 11:55:31 +01:00
parent ced019eaa5
commit eab6be8bcb
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}