Skip to content

Commit

Permalink
fix(underglow): Correctly set underglow state
Browse files Browse the repository at this point in the history
This fixes a bug introduced in zmkfirmware#2244
  • Loading branch information
jradtilbrook authored Apr 25, 2024
1 parent 4d56685 commit 0d3a4b7
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 @@ -492,7 +492,7 @@ static int rgb_underglow_auto_state(bool target_wake_state) {
return zmk_rgb_underglow_off();
}
} else {
sleep_state.rgb_state_before_sleeping = sleep_state.on;
sleep_state.rgb_state_before_sleeping = state.on;
return zmk_rgb_underglow_off();
}
}
Expand Down

0 comments on commit 0d3a4b7

Please sign in to comment.