mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-11-25 12:46:41 +00:00
Fix up operator precedence in RGBLIGHT (#21280)
This commit is contained in:
parent
a2171ff4e8
commit
884be6c1ba
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user