Skip to content

Commit

Permalink
Use available STRIP_NUM_PIXELS #define
Browse files Browse the repository at this point in the history
  • Loading branch information
khoek committed Apr 4, 2024
1 parent 04d4bd0 commit 8edeb3c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/src/rgb_underglow.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ static void zmk_rgb_underglow_effect_kinesis() {
if (bt_alert) {
// override all leds to blinking red due to bluetooth problem
struct led_rgb color = bt_blinking ? LED_RGB(0x000000) : LED_RGB(0xFF0000);
for (int i = 0; i < 3; i++)
for (int i = 0; i < STRIP_NUM_PIXELS; i++)
pixels[i] = color;
}
#endif
Expand Down Expand Up @@ -376,7 +376,6 @@ static void zmk_rgb_underglow_effect_test() {

state.animation_step += 20;
if (state.animation_step > (HUE_MAX * 3)) {

rgb.r = 255;
rgb.g = 255;
rgb.b = 255;
Expand Down

0 comments on commit 8edeb3c

Please sign in to comment.