diff options
| author | QMK Bot <hello@qmk.fm> | 2023-06-18 04:33:50 +0000 |
|---|---|---|
| committer | QMK Bot <hello@qmk.fm> | 2023-06-18 04:33:50 +0000 |
| commit | 7178645be79510eb623098bccbf1724ff9970edc (patch) | |
| tree | cba71f690078793c7a732d0870bc27069929f55b | |
| parent | 40a073b140c97d2c981d2542ae47dea7275f4044 (diff) | |
| parent | 884be6c1baca11a5a1eee2ef4af1f272d4a9d15c (diff) | |
Merge remote-tracking branch 'origin/master' into develop
| -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) { | |||
| 1277 | for (j = 0; j < RGBLIGHT_EFFECT_SNAKE_LENGTH; j++) { | 1277 | for (j = 0; j < RGBLIGHT_EFFECT_SNAKE_LENGTH; j++) { |
| 1278 | k = pos + j * increment; | 1278 | k = pos + j * increment; |
| 1279 | if (k > RGBLED_NUM) { | 1279 | if (k > RGBLED_NUM) { |
| 1280 | k = k % RGBLED_NUM; | 1280 | k = k % (RGBLED_NUM); |
| 1281 | } | 1281 | } |
| 1282 | if (k < 0) { | 1282 | if (k < 0) { |
| 1283 | k = k + rgblight_ranges.effect_num_leds; | 1283 | k = k + rgblight_ranges.effect_num_leds; |
