mirror of
https://github.com/firewalkwithm3/qmk_firmware.git
synced 2024-11-22 19:40:29 +08:00
Fix small hiccup in snake animation (#6858)
This commit is contained in:
parent
eac6ccff98
commit
5a3aefed8d
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue