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 zvecr committed Oct 15, 2019
1 parent 394bd80 commit 1e30eeb
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 1e30eeb

Please sign in to comment.