diff options
author | Nick Brassel <nick@tzarc.org> | 2023-06-18 14:33:18 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-18 14:33:18 +1000 |
commit | 884be6c1baca11a5a1eee2ef4af1f272d4a9d15c (patch) | |
tree | 18690bea80091b84b5e339735c2e3884fcafd927 /quantum/rgblight | |
parent | a2171ff4e8c9a9230bfaf175be00f4e1d50fc989 (diff) |
Fix up operator precedence in RGBLIGHT (#21280)
Diffstat (limited to 'quantum/rgblight')
-rw-r--r-- | quantum/rgblight/rgblight.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/quantum/rgblight/rgblight.c b/quantum/rgblight/rgblight.c index ea28801a40..158112f31d 100644 --- 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; |