feat(underglow): fix bug

This commit is contained in:
ReFil 2021-11-18 17:52:56 +00:00
parent 20a034fb37
commit 91a3dfa68c

View file

@ -454,7 +454,7 @@ static int rgb_underglow_auto_state(bool *prev_state, bool *new_state) {
if (state.on == *new_state) { if (state.on == *new_state) {
return 0; return 0;
} }
if (new_state) { if (*new_state) {
state.on = *prev_state; state.on = *prev_state;
*prev_state = false; *prev_state = false;
return zmk_rgb_underglow_on(); return zmk_rgb_underglow_on();