Skip to content

Commit

Permalink
refactor(underglow): fix uninitialized variable warning
Browse files Browse the repository at this point in the history
  • Loading branch information
xudongzheng authored and petejohanson committed Apr 9, 2024
1 parent 7d5aa0c commit 849eca7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/rgb_underglow.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ static struct zmk_led_hsb hsb_scale_zero_max(struct zmk_led_hsb hsb) {
}

static struct led_rgb hsb_to_rgb(struct zmk_led_hsb hsb) {
float r, g, b;
float r = 0, g = 0, b = 0;

uint8_t i = hsb.h / 60;
float v = hsb.b / ((float)BRT_MAX);
Expand Down

0 comments on commit 849eca7

Please sign in to comment.