aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortheVDude <rb.cubed@gmail.com>2019-10-15 18:13:13 -0400
committerJoel Challis <git@zvecr.com>2019-10-15 23:13:13 +0100
commit5a3aefed8d7fa2d86ff3d292915b42a3444048d0 (patch)
treed9a543561d1780a938f5b593d949787650370b8b
parenteac6ccff98f0c9793d459a7f45b5e7fbf8462343 (diff)
downloadqmk_firmware-5a3aefed8d7fa2d86ff3d292915b42a3444048d0.tar.gz
qmk_firmware-5a3aefed8d7fa2d86ff3d292915b42a3444048d0.zip
Fix small hiccup in snake animation (#6858)
-rw-r--r--quantum/rgblight.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/quantum/rgblight.c b/quantum/rgblight.c
index a094863fe..1c197827f 100644
--- a/quantum/rgblight.c
+++ b/quantum/rgblight.c
@@ -910,6 +910,9 @@ void rgblight_effect_snake(animation_status_t *anim) {
910 ledp->b = 0; 910 ledp->b = 0;
911 for (j = 0; j < RGBLIGHT_EFFECT_SNAKE_LENGTH; j++) { 911 for (j = 0; j < RGBLIGHT_EFFECT_SNAKE_LENGTH; j++) {
912 k = pos + j * increment; 912 k = pos + j * increment;
913 if (k > RGBLED_NUM) {
914 k = k % RGBLED_NUM;
915 }
913 if (k < 0) { 916 if (k < 0) {
914 k = k + effect_num_leds; 917 k = k + effect_num_leds;
915 } 918 }