diff options
author | Jens Arnold <amiconn@rockbox.org> | 2005-11-21 23:55:39 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2005-11-21 23:55:39 +0000 |
commit | b51f7dfc9b507ab9db12fe90b2ddad708f435e06 (patch) | |
tree | efcef3411689401da21795d700a0741f8ab1072b /firmware/powermgmt.c | |
parent | e68680ac310adb8373c9f3a5194466766d64cf37 (diff) |
Backlight handling: * Added 'Caption Backlight' and 'Backlight On When Charging' for the iriver remote LCD. * Enabled the backlight code for the simulator, and prepared backlight simulation. It's only a stub atm, writing messages to the console window. * Added tick task handling to the simulators for this to work. * Code cleanup in backlight.c, less dead code.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8034 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/powermgmt.c')
-rw-r--r-- | firmware/powermgmt.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c index ed3f42287c..72a9b90e78 100644 --- a/firmware/powermgmt.c +++ b/firmware/powermgmt.c @@ -448,7 +448,7 @@ static int runcurrent(void) current = CURRENT_USB; } -#ifndef BOOTLOADER +#if defined(CONFIG_BACKLIGHT) && !defined(BOOTLOADER) if ((backlight_get_timeout() == 1) /* LED always on */ #ifdef HAVE_CHARGE_CTRL || (charger_inserted() && backlight_get_on_when_charging()) @@ -915,13 +915,11 @@ void shutdown_hw(void) #elif HAVE_TLV320 tlv320_close(); #endif -#if CONFIG_KEYPAD == ONDIO_PAD backlight_off(); - sleep(1); lcd_set_contrast(0); -#endif #ifdef HAVE_REMOTE_LCD - lcd_remote_backlight_off(); + remote_backlight_off(); + lcd_remote_set_contrast(0); #endif power_off(); #endif /* #ifndef SIMULATOR */ |