diff options
author | David Stosik <davidstosik@users.noreply.github.com> | 2017-09-04 03:02:06 +0900 |
---|---|---|
committer | skullydazed <skullydazed@users.noreply.github.com> | 2017-09-03 11:02:06 -0700 |
commit | 94f8b758b3029087381a9eaa6aa1bce92b2f8a0f (patch) | |
tree | b7c6e6c238a7ebcf885ddd72fab45b8801eae3a7 | |
parent | f0db2c0512996c30372a586aa535a6dca66dce0a (diff) | |
download | firmware-94f8b758b3029087381a9eaa6aa1bce92b2f8a0f.tar.gz firmware-94f8b758b3029087381a9eaa6aa1bce92b2f8a0f.tar.bz2 firmware-94f8b758b3029087381a9eaa6aa1bce92b2f8a0f.zip |
Fix Kitt and its default behavior (#1674)
-rw-r--r-- | quantum/rgblight.c | 12 | ||||
-rw-r--r-- | quantum/rgblight.h | 2 |
2 files changed, 6 insertions, 8 deletions
diff --git a/quantum/rgblight.c b/quantum/rgblight.c index 4eec2a776..d568a4f44 100644 --- a/quantum/rgblight.c +++ b/quantum/rgblight.c @@ -566,13 +566,11 @@ void rgblight_effect_knight(uint8_t interval) { } } } - if (RGBLIGHT_EFFECT_KNIGHT_OFFSET) { - for (i = 0; i < RGBLED_NUM; i++) { - cur = (i + RGBLIGHT_EFFECT_KNIGHT_OFFSET) % RGBLED_NUM; - led[i].r = preled[cur].r; - led[i].g = preled[cur].g; - led[i].b = preled[cur].b; - } + for (i = 0; i < RGBLED_NUM; i++) { + cur = (i + RGBLIGHT_EFFECT_KNIGHT_OFFSET) % RGBLED_NUM; + led[i].r = preled[cur].r; + led[i].g = preled[cur].g; + led[i].b = preled[cur].b; } rgblight_set(); if (increment == 1) { diff --git a/quantum/rgblight.h b/quantum/rgblight.h index 8fea96a9e..d3e3a6cf7 100644 --- a/quantum/rgblight.h +++ b/quantum/rgblight.h @@ -30,7 +30,7 @@ #define RGBLIGHT_EFFECT_KNIGHT_LENGTH 7 #endif #ifndef RGBLIGHT_EFFECT_KNIGHT_OFFSET -#define RGBLIGHT_EFFECT_KNIGHT_OFFSET 9 +#define RGBLIGHT_EFFECT_KNIGHT_OFFSET 0 #endif #ifndef RGBLIGHT_EFFECT_DUALKNIGHT_LENGTH |