summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2016-11-23 00:41:37 +0100
committerGitHub <noreply@github.com>2016-11-23 00:41:37 +0100
commit2b3a3ca67867ecd02e100c6e2fbe1972af1abb84 (patch)
tree7602bc7bf6976b04e0649fe02e0679dc1c6ed897
parente131de3df63d25b61c3d95ffd68b7f2875d5df70 (diff)
parentd37becc0a9203c4c7d52aca6190b4b3d9fb69a59 (diff)
downloadqmk_firmware-2b3a3ca67867ecd02e100c6e2fbe1972af1abb84.tar.gz
qmk_firmware-2b3a3ca67867ecd02e100c6e2fbe1972af1abb84.tar.xz
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
-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 c9e8fd3fd..0e0ad2d15 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);
}