diff options
Diffstat (limited to 'quantum/rgblight.c')
-rw-r--r-- | quantum/rgblight.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/quantum/rgblight.c b/quantum/rgblight.c index 4eec2a7762..d568a4f446 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) { |