fix(underglow): Correctly set underglow state

This fixes a bug introduced in #2244
This commit is contained in:
Jarryd Tilbrook 2024-04-25 22:26:26 +08:00 committed by GitHub
parent 4d566853af
commit 0d3a4b7bbb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -492,7 +492,7 @@ static int rgb_underglow_auto_state(bool target_wake_state) {
return zmk_rgb_underglow_off(); return zmk_rgb_underglow_off();
} }
} else { } else {
sleep_state.rgb_state_before_sleeping = sleep_state.on; sleep_state.rgb_state_before_sleeping = state.on;
return zmk_rgb_underglow_off(); return zmk_rgb_underglow_off();
} }
} }