summaryrefslogtreecommitdiff
path: root/tmk_core
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2016-11-22 18:41:37 -0500
committerGitHub <noreply@github.com>2016-11-22 18:41:37 -0500
commit2b3a3ca67867ecd02e100c6e2fbe1972af1abb84 (patch)
tree7602bc7bf6976b04e0649fe02e0679dc1c6ed897 /tmk_core
parente131de3df63d25b61c3d95ffd68b7f2875d5df70 (diff)
parentd37becc0a9203c4c7d52aca6190b4b3d9fb69a59 (diff)
downloadqmk_firmware-2b3a3ca67867ecd02e100c6e2fbe1972af1abb84.tar.gz
qmk_firmware-2b3a3ca67867ecd02e100c6e2fbe1972af1abb84.zip
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
Diffstat (limited to 'tmk_core')
-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);
}