HCoop
/
jackhill
/
qmk
/
firmware.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eac6ccf
)
Fix small hiccup in snake animation (#6858)
author
theVDude
<rb.cubed@gmail.com>
Tue, 15 Oct 2019 22:13:13 +0000
(18:13 -0400)
committer
Joel Challis
<git@zvecr.com>
Tue, 15 Oct 2019 22:13:13 +0000
(23:13 +0100)
quantum/rgblight.c
patch
|
blob
|
blame
|
history
diff --git
a/quantum/rgblight.c
b/quantum/rgblight.c
index
a094863
..
1c19782
100644
(file)
--- a/
quantum/rgblight.c
+++ b/
quantum/rgblight.c
@@
-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;
}