projects
/
qmk_firmware.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5270af
)
Set backlight status to on if it's at maximum brightness already and the brightness...
author
PureSpider
<alex.lamprecht1@gmail.com>
Tue, 22 Nov 2016 21:12:57 +0000
(22:12 +0100)
committer
PureSpider
<alex.lamprecht1@gmail.com>
Tue, 22 Nov 2016 21:12:57 +0000
(22:12 +0100)
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
tmk_core/common/backlight.c
patch
|
blob
|
history
diff --git
a/tmk_core/common/backlight.c
b/tmk_core/common/backlight.c
index c9e8fd3fd2ddbe3fce3afd0096f13f3cfab1f2c2..0e0ad2d1541d8e05dc7de68f64ce1eec4ec3b2a9 100644
(file)
--- 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);
}