summaryrefslogtreecommitdiffstats
path: root/quantum/visualizer
diff options
context:
space:
mode:
authorFred Sundvik <fsundvik@gmail.com>2017-07-08 17:42:13 +0200
committerJack Humbert <jack.humb@gmail.com>2017-07-10 15:02:36 +0200
commit10546665f4cdc25e3405bfa108b066004d436aea (patch)
tree9d5948ee728ae588912cce27211ec7e380c91c5b /quantum/visualizer
parent551924f8a02b374201f7d0066755fa183a45accf (diff)
downloadqmk_firmware-10546665f4cdc25e3405bfa108b066004d436aea.tar.gz
qmk_firmware-10546665f4cdc25e3405bfa108b066004d436aea.tar.xz
Fix uninitialized backlight_level in the Visualizer
Diffstat (limited to 'quantum/visualizer')
-rw-r--r--quantum/visualizer/visualizer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/quantum/visualizer/visualizer.c b/quantum/visualizer/visualizer.c
index 68b86f590..5b4d8d603 100644
--- a/quantum/visualizer/visualizer.c
+++ b/quantum/visualizer/visualizer.c
@@ -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) {