Skip to content

Commit

Permalink
Fix segment LED numbering
Browse files Browse the repository at this point in the history
  • Loading branch information
toblum committed Jan 5, 2020
1 parent f66d9e0 commit 45638dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ void setAnimation(uint8_t segment, uint8_t mode = FX_MODE_STATIC, uint32_t color
// Support only one segment for the moment
if (segment == 0) {
startLed = 0;
endLed = atoi(paramNumLedsValue) - 1;
endLed = atoi(paramNumLedsValue);
}
Serial.printf("setAnimation: %d, %d-%d, Mode: %d, Color: %d, Speed: %d\n", segment, startLed, endLed, mode, color, speed);
ws2812fx.setSegment(segment, startLed, endLed, mode, color, speed, reverse);
Expand Down

0 comments on commit 45638dc

Please sign in to comment.