Revert r26055 since it breaks certain Archos targets.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26067 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
b6c3bc1cc9
commit
964dcb33b6
3 changed files with 1 additions and 17 deletions
10
apps/misc.c
10
apps/misc.c
|
@ -264,11 +264,7 @@ static bool clean_shutdown(void (*callback)(void *), void *parameter)
|
|||
scrobbler_poweroff();
|
||||
|
||||
#if CONFIG_CHARGING && !defined(HAVE_POWEROFF_WHILE_CHARGING)
|
||||
#if CONFIG_CHARGING >= CHARGING_MONITOR
|
||||
if(!charging_state())
|
||||
#else
|
||||
if(!charger_inserted())
|
||||
#endif
|
||||
#endif
|
||||
{
|
||||
bool batt_safe = battery_level_safe();
|
||||
|
@ -410,11 +406,7 @@ bool list_stop_handler(void)
|
|||
|
||||
if (TIME_BEFORE(current_tick, last_off + HZ/2))
|
||||
{
|
||||
#if CONFIG_CHARGING >= CHARGING_MONITOR
|
||||
if (charging_state())
|
||||
#else
|
||||
if (charger_inserted())
|
||||
#endif
|
||||
if (charger_inserted())
|
||||
{
|
||||
charging_splash();
|
||||
ret = true; /* screen is dirty, caller needs to refresh */
|
||||
|
|
|
@ -205,11 +205,7 @@ static void button_tick(void)
|
|||
#endif
|
||||
) &&
|
||||
#if CONFIG_CHARGING && !defined(HAVE_POWEROFF_WHILE_CHARGING)
|
||||
#if CONFIG_CHARGING >= CHARGING_MONITOR
|
||||
!charging_state() &&
|
||||
#else
|
||||
!charger_inserted() &&
|
||||
#endif
|
||||
#endif
|
||||
repeat_count > POWEROFF_COUNT)
|
||||
{
|
||||
|
|
|
@ -358,11 +358,7 @@ static void handle_auto_poweroff(void)
|
|||
|
||||
if (usb_inserted()
|
||||
#if CONFIG_CHARGING && !defined(HAVE_POWEROFF_WHILE_CHARGING)
|
||||
#if CONFIG_CHARGING >= CHARGING_MONITOR
|
||||
|| charging_state()
|
||||
#else
|
||||
|| charger_input_state != NO_CHARGER
|
||||
#endif
|
||||
#endif
|
||||
) {
|
||||
DEBUGF("Sleep timer timeout. Stopping...\n");
|
||||
|
|
Loading…
Reference in a new issue