forked from len0rd/rockbox
Use plugged backlight timeout when usb powered
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9086 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
396f163e36
commit
2457de11b6
1 changed files with 10 additions and 2 deletions
|
|
@ -332,7 +332,11 @@ void backlight_thread(void)
|
||||||
#ifdef HAVE_REMOTE_LCD
|
#ifdef HAVE_REMOTE_LCD
|
||||||
case REMOTE_BACKLIGHT_ON:
|
case REMOTE_BACKLIGHT_ON:
|
||||||
#ifdef HAVE_CHARGING
|
#ifdef HAVE_CHARGING
|
||||||
if (charger_inserted())
|
if (charger_inserted()
|
||||||
|
#ifdef HAVE_USB_POWER
|
||||||
|
|| usb_powered()
|
||||||
|
#endif
|
||||||
|
)
|
||||||
remote_backlight_timer = remote_backlight_timeout_plugged;
|
remote_backlight_timer = remote_backlight_timeout_plugged;
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -357,7 +361,11 @@ void backlight_thread(void)
|
||||||
#endif /* HAVE_REMOTE_LCD */
|
#endif /* HAVE_REMOTE_LCD */
|
||||||
case BACKLIGHT_ON:
|
case BACKLIGHT_ON:
|
||||||
#ifdef HAVE_CHARGING
|
#ifdef HAVE_CHARGING
|
||||||
if (charger_inserted())
|
if (charger_inserted()
|
||||||
|
#ifdef HAVE_USB_POWER
|
||||||
|
|| usb_powered()
|
||||||
|
#endif
|
||||||
|
)
|
||||||
backlight_timer = backlight_timeout_plugged;
|
backlight_timer = backlight_timeout_plugged;
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue