forked from mirrors/qmk_firmware
Fix uninitialized backlight_level in the Visualizer
This commit is contained in:
parent
551924f8a0
commit
10546665f4
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue