diff options
Diffstat (limited to 'apps/misc.c')
-rw-r--r-- | apps/misc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/misc.c b/apps/misc.c index 8c60e32559..554d29e630 100644 --- a/apps/misc.c +++ b/apps/misc.c | |||
@@ -590,6 +590,7 @@ long default_event_handler_ex(long event, void (*callback)(void *), void *parame | |||
590 | system_restore(); | 590 | system_restore(); |
591 | } | 591 | } |
592 | return SYS_USB_CONNECTED; | 592 | return SYS_USB_CONNECTED; |
593 | |||
593 | case SYS_POWEROFF: | 594 | case SYS_POWEROFF: |
594 | if (!clean_shutdown(callback, parameter)) | 595 | if (!clean_shutdown(callback, parameter)) |
595 | return SYS_POWEROFF; | 596 | return SYS_POWEROFF; |
@@ -601,6 +602,8 @@ long default_event_handler_ex(long event, void (*callback)(void *), void *parame | |||
601 | 602 | ||
602 | case SYS_CHARGER_DISCONNECTED: | 603 | case SYS_CHARGER_DISCONNECTED: |
603 | car_adapter_mode_processing(false); | 604 | car_adapter_mode_processing(false); |
605 | /*reset rockbox battery runtime*/ | ||
606 | global_status.runtime = 0; | ||
604 | return SYS_CHARGER_DISCONNECTED; | 607 | return SYS_CHARGER_DISCONNECTED; |
605 | 608 | ||
606 | case SYS_CAR_ADAPTER_RESUME: | 609 | case SYS_CAR_ADAPTER_RESUME: |