Skip to content

Commit

Permalink
Fix small hiccup in snake animation (qmk#6858)
Browse files Browse the repository at this point in the history
  • Loading branch information
theVDude authored and HokieGeek committed Feb 21, 2020
1 parent 624f3ad commit 9ef840b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions quantum/rgblight.c
Original file line number Diff line number Diff line change
Expand Up @@ -910,6 +910,9 @@ void rgblight_effect_snake(animation_status_t *anim) {
ledp->b = 0;
for (j = 0; j < RGBLIGHT_EFFECT_SNAKE_LENGTH; j++) {
k = pos + j * increment;
if (k > RGBLED_NUM) {
k = k % RGBLED_NUM;
}
if (k < 0) {
k = k + effect_num_leds;
}
Expand Down

0 comments on commit 9ef840b

Please sign in to comment.