From 91a3dfa68c304d5543bdd24080044adbdf9418ad Mon Sep 17 00:00:00 2001 From: ReFil <31960031+ReFil@users.noreply.github.com> Date: Thu, 18 Nov 2021 17:52:56 +0000 Subject: [PATCH] feat(underglow): fix bug --- app/src/rgb_underglow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/rgb_underglow.c b/app/src/rgb_underglow.c index c8b06f9c..69838cf5 100644 --- a/app/src/rgb_underglow.c +++ b/app/src/rgb_underglow.c @@ -454,7 +454,7 @@ static int rgb_underglow_auto_state(bool *prev_state, bool *new_state) { if (state.on == *new_state) { return 0; } - if (new_state) { + if (*new_state) { state.on = *prev_state; *prev_state = false; return zmk_rgb_underglow_on();