mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-11-26 13:16:44 +00:00
Merge pull request #898 from PureSpider/backlight-fix
Set backlight status to on if it's at maximum brightness already and the brightness increase keybind is used
This commit is contained in:
commit
2b3a3ca678
@ -36,9 +36,9 @@ void backlight_increase(void)
|
|||||||
if(backlight_config.level < BACKLIGHT_LEVELS)
|
if(backlight_config.level < BACKLIGHT_LEVELS)
|
||||||
{
|
{
|
||||||
backlight_config.level++;
|
backlight_config.level++;
|
||||||
|
}
|
||||||
backlight_config.enable = 1;
|
backlight_config.enable = 1;
|
||||||
eeconfig_update_backlight(backlight_config.raw);
|
eeconfig_update_backlight(backlight_config.raw);
|
||||||
}
|
|
||||||
dprintf("backlight increase: %u\n", backlight_config.level);
|
dprintf("backlight increase: %u\n", backlight_config.level);
|
||||||
backlight_set(backlight_config.level);
|
backlight_set(backlight_config.level);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user