diff options
author | Fred Sundvik <fsundvik@gmail.com> | 2017-06-16 02:01:02 +0300 |
---|---|---|
committer | Fred Sundvik <fsundvik@gmail.com> | 2017-06-16 02:05:15 +0300 |
commit | 7d5606085fbd775019fc514f3ffca84edfc11aa6 (patch) | |
tree | 41832c8f8f5b311f07c77bc81fb7c3f72d448f76 /quantum | |
parent | 19f0285a766e412db14e6cbe24532fdbff610af0 (diff) |
Correctly calculate backlight level
Diffstat (limited to 'quantum')
-rw-r--r-- | quantum/visualizer/visualizer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/quantum/visualizer/visualizer.c b/quantum/visualizer/visualizer.c index 29db7005ce..486ff25b3f 100644 --- a/quantum/visualizer/visualizer.c +++ b/quantum/visualizer/visualizer.c @@ -289,7 +289,7 @@ static DECLARE_THREAD_FUNCTION(visualizerThread, arg) { if(current_status.backlight_level != state.status.backlight_level) { if (current_status.backlight_level != 0) { gdispGSetPowerMode(LED_DISPLAY, powerOn); - uint16_t percent = (uint16_t)current_status.backlight_level * 100 / 255; + uint16_t percent = (uint16_t)current_status.backlight_level * 100 / BACKLIGHT_LEVELS; gdispGSetBacklight(LED_DISPLAY, percent); } else { |