From ba917cb86f7a5470211a06a86dc69efcaa33459a Mon Sep 17 00:00:00 2001 From: Kai Ryu Date: Sat, 11 Jan 2014 22:17:36 +0900 Subject: [PATCH] Fix for an issue about backlight on --- common/backlight.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/common/backlight.c b/common/backlight.c index f13d9dbc..a0b2ce50 100644 --- a/common/backlight.c +++ b/common/backlight.c @@ -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);