1
0

Fix for an issue about backlight on

This commit is contained in:
Kai Ryu 2014-01-11 22:17:36 +09:00
parent ac5b5ff533
commit fe4e5696a7

View File

@ -81,6 +81,12 @@ void backlight_decrease(void)
void backlight_toggle(void)
{
backlight_config.enable ^= 1;
if (backlight_config.enable)
{
if (backlight_config.level == 0) {
backlight_config.level = 1;
}
}
eeconfig_write_backlight(backlight_config.raw);
dprintf("backlight toggle: %u\n", backlight_config.enable);
backlight_set(backlight_config.enable ? backlight_config.level : 0);