diff options
author | Yang Liu <i@yangliu.name> | 2016-01-24 17:19:33 -0800 |
---|---|---|
committer | Yang Liu <i@yangliu.name> | 2016-01-24 17:19:33 -0800 |
commit | 2647c7cd84820a833b85e41ea86caf76b36e6ee1 (patch) | |
tree | c613b1e565a22627135e19e819b045f2513d7f5c /quantum | |
parent | ba9ac457b2159097ecfd9848c5171c52e3a68260 (diff) |
fix bugs in animation effects
Diffstat (limited to 'quantum')
-rw-r--r-- | quantum/rgblight.c | 2 | ||||
-rw-r--r-- | quantum/rgblight.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/quantum/rgblight.c b/quantum/rgblight.c index 552456aae3..2215cf5cdf 100644 --- a/quantum/rgblight.c +++ b/quantum/rgblight.c @@ -445,7 +445,7 @@ void rgblight_effect_snake(uint8_t interval) { rgblight_set(); if (increament == 1) { if (pos - 1 < 0) { - pos = 13; + pos = RGBLED_NUM-1; } else { pos -= 1; } diff --git a/quantum/rgblight.h b/quantum/rgblight.h index fd39ead09f..9e1562328f 100644 --- a/quantum/rgblight.h +++ b/quantum/rgblight.h @@ -13,7 +13,7 @@ #define RGBLIGHT_EFFECT_KNIGHT_LENGTH 7 #endif #ifndef RGBLIGHT_EFFECT_KNIGHT_OFFSET -#define RGBLIGHT_EFFECT_KNIGHT_OFFSET 11 +#define RGBLIGHT_EFFECT_KNIGHT_OFFSET 9 #endif #ifndef RGBLIGHT_EFFECT_DUALKNIGHT_LENGTH |