summaryrefslogtreecommitdiff
path: root/tmk_core/common
diff options
context:
space:
mode:
authorPureSpider <alex.lamprecht1@gmail.com>2016-11-22 22:12:57 +0100
committerPureSpider <alex.lamprecht1@gmail.com>2016-11-22 22:12:57 +0100
commitd37becc0a9203c4c7d52aca6190b4b3d9fb69a59 (patch)
treeb20ab99c65567b38e51566e2076015da0de06d9b /tmk_core/common
parentd5270af1118a86cc8aaf795005941ad980a0d128 (diff)
downloadqmk_firmware-d37becc0a9203c4c7d52aca6190b4b3d9fb69a59.tar.gz
qmk_firmware-d37becc0a9203c4c7d52aca6190b4b3d9fb69a59.zip
Set backlight status to on if it's at maximum brightness already and the brightness increase keybind is used
Before it was turned on but the status wasn't set to on, so you had to push the backlight toggle bind twice to turn it off again
Diffstat (limited to 'tmk_core/common')
-rw-r--r--tmk_core/common/backlight.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tmk_core/common/backlight.c b/tmk_core/common/backlight.c
index c9e8fd3fd2..0e0ad2d154 100644
--- a/tmk_core/common/backlight.c
+++ b/tmk_core/common/backlight.c
@@ -36,9 +36,9 @@ void backlight_increase(void)
if(backlight_config.level < BACKLIGHT_LEVELS)
{
backlight_config.level++;
- backlight_config.enable = 1;
- eeconfig_update_backlight(backlight_config.raw);
}
+ backlight_config.enable = 1;
+ eeconfig_update_backlight(backlight_config.raw);
dprintf("backlight increase: %u\n", backlight_config.level);
backlight_set(backlight_config.level);
}