Skip to content

Commit

Permalink
Fix uninitialized backlight_level in the Visualizer
Browse files Browse the repository at this point in the history
  • Loading branch information
fredizzimo authored and jackhumbert committed Jul 10, 2017
1 parent 551924f commit 1054666
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions quantum/visualizer/visualizer.c
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,9 @@ static DECLARE_THREAD_FUNCTION(visualizerThread, arg) {
.mods = 0xFF,
.leds = 0xFFFFFFFF,
.suspended = false,
#ifdef BACKLIGHT_ENABLE
.backlight_level = 0,
#endif
#ifdef VISUALIZER_USER_DATA_SIZE
.user_data = {0},
#endif
Expand Down Expand Up @@ -300,6 +303,7 @@ static DECLARE_THREAD_FUNCTION(visualizerThread, arg) {
else {
gdispGSetPowerMode(LED_DISPLAY, powerOff);
}
state.status.backlight_level = current_status.backlight_level;
}
#endif
if (visualizer_enabled) {
Expand Down

0 comments on commit 1054666

Please sign in to comment.