qmk_firmware

QMK firmware for my keyboards (Corne, Sweep Ferris) and trackball (Ploopy Adept)
Log | Files | Refs | Submodules | LICENSE

commit 884be6c1baca11a5a1eee2ef4af1f272d4a9d15c
parent a2171ff4e8c9a9230bfaf175be00f4e1d50fc989
Author: Nick Brassel <nick@tzarc.org>
Date:   Sun, 18 Jun 2023 14:33:18 +1000

Fix up operator precedence in RGBLIGHT (#21280)


Diffstat:
Mquantum/rgblight/rgblight.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/quantum/rgblight/rgblight.c b/quantum/rgblight/rgblight.c @@ -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;