mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-11-26 02:17:38 +06:00
Fix Kitt and its default behavior (#1674)
This commit is contained in:
parent
f0db2c0512
commit
94f8b758b3
|
@ -566,13 +566,11 @@ void rgblight_effect_knight(uint8_t interval) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (RGBLIGHT_EFFECT_KNIGHT_OFFSET) {
|
for (i = 0; i < RGBLED_NUM; i++) {
|
||||||
for (i = 0; i < RGBLED_NUM; i++) {
|
cur = (i + RGBLIGHT_EFFECT_KNIGHT_OFFSET) % RGBLED_NUM;
|
||||||
cur = (i + RGBLIGHT_EFFECT_KNIGHT_OFFSET) % RGBLED_NUM;
|
led[i].r = preled[cur].r;
|
||||||
led[i].r = preled[cur].r;
|
led[i].g = preled[cur].g;
|
||||||
led[i].g = preled[cur].g;
|
led[i].b = preled[cur].b;
|
||||||
led[i].b = preled[cur].b;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
rgblight_set();
|
rgblight_set();
|
||||||
if (increment == 1) {
|
if (increment == 1) {
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
#define RGBLIGHT_EFFECT_KNIGHT_LENGTH 7
|
#define RGBLIGHT_EFFECT_KNIGHT_LENGTH 7
|
||||||
#endif
|
#endif
|
||||||
#ifndef RGBLIGHT_EFFECT_KNIGHT_OFFSET
|
#ifndef RGBLIGHT_EFFECT_KNIGHT_OFFSET
|
||||||
#define RGBLIGHT_EFFECT_KNIGHT_OFFSET 9
|
#define RGBLIGHT_EFFECT_KNIGHT_OFFSET 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef RGBLIGHT_EFFECT_DUALKNIGHT_LENGTH
|
#ifndef RGBLIGHT_EFFECT_DUALKNIGHT_LENGTH
|
||||||
|
|
Loading…
Reference in New Issue
Block a user