aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorXudong Zheng <[email protected]>2024-02-23 16:59:48 -0500
committerPete Johanson <[email protected]>2024-04-09 15:57:34 -0700
commit849eca72289a011106c1e1b26311d12c369d4051 (patch)
tree6fd12d906f8105562ef09bb36163cf72cc248354
parent7d5aa0c0bf7283ce484f467338c7e04ff1f7cf25 (diff)
downloadzmk-849eca72289a011106c1e1b26311d12c369d4051.tar.gz
zmk-849eca72289a011106c1e1b26311d12c369d4051.zip
refactor(underglow): fix uninitialized variable warning
-rw-r--r--app/src/rgb_underglow.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/rgb_underglow.c b/app/src/rgb_underglow.c
index a7a9b4f018..a055a4d7d9 100644
--- a/app/src/rgb_underglow.c
+++ b/app/src/rgb_underglow.c
@@ -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);