~ruther/qmk_firmware

884be6c1baca11a5a1eee2ef4af1f272d4a9d15c — Nick Brassel 2 years ago a2171ff
Fix up operator precedence in RGBLIGHT (#21280)

1 files changed, 1 insertions(+), 1 deletions(-)

M quantum/rgblight/rgblight.c
M quantum/rgblight/rgblight.c => quantum/rgblight/rgblight.c +1 -1
@@ 1277,7 1277,7 @@ void rgblight_effect_snake(animation_status_t *anim) {
        for (j = 0; j < RGBLIGHT_EFFECT_SNAKE_LENGTH; j++) {
            k = pos + j * increment;
            if (k > RGBLED_NUM) {
                k = k % RGBLED_NUM;
                k = k % (RGBLED_NUM);
            }
            if (k < 0) {
                k = k + rgblight_ranges.effect_num_leds;

Do not follow this link