aboutsummaryrefslogtreecommitdiff
path: root/quantum/rgblight.c
diff options
context:
space:
mode:
authorYang Liu <i@yangliu.name>2016-01-24 17:19:33 -0800
committerYang Liu <i@yangliu.name>2016-01-24 17:19:33 -0800
commit2647c7cd84820a833b85e41ea86caf76b36e6ee1 (patch)
treec613b1e565a22627135e19e819b045f2513d7f5c /quantum/rgblight.c
parentba9ac457b2159097ecfd9848c5171c52e3a68260 (diff)
downloadqmk_firmware-2647c7cd84820a833b85e41ea86caf76b36e6ee1.tar.gz
qmk_firmware-2647c7cd84820a833b85e41ea86caf76b36e6ee1.zip
fix bugs in animation effects
Diffstat (limited to 'quantum/rgblight.c')
-rw-r--r--quantum/rgblight.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/quantum/rgblight.c b/quantum/rgblight.c
index 552456aae..2215cf5cd 100644
--- a/quantum/rgblight.c
+++ b/quantum/rgblight.c
@@ -445,7 +445,7 @@ void rgblight_effect_snake(uint8_t interval) {
445 rgblight_set(); 445 rgblight_set();
446 if (increament == 1) { 446 if (increament == 1) {
447 if (pos - 1 < 0) { 447 if (pos - 1 < 0) {
448 pos = 13; 448 pos = RGBLED_NUM-1;
449 } else { 449 } else {
450 pos -= 1; 450 pos -= 1;
451 } 451 }