Browse Source

Merge remote-tracking branch 'origin/develop' into xap

QMK Bot 3 years ago
parent
commit
85a367dfe8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      quantum/rgblight/rgblight.c

+ 1 - 1
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;