mirror of
https://github.com/qmk/qmk_firmware
synced 2024-11-10 22:19:29 +00:00
Correctly calculate backlight level
This commit is contained in:
parent
19f0285a76
commit
7d5606085f
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue