1
0
Fork 0

Fix Kitt and its default behavior (#1674)

This commit is contained in:
David Stosik 2017-09-04 03:02:06 +09:00 committed by skullydazed
parent f0db2c0512
commit 94f8b758b3
2 changed files with 6 additions and 8 deletions

View File

@ -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) {

View File

@ -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