summaryrefslogtreecommitdiff
path: root/apps/misc.c
diff options
context:
space:
mode:
authorMihail Zenkov <mihail.zenkov@gmail.com>2016-03-30 22:25:24 +0000
committerGerrit Rockbox <gerrit@rockbox.org>2016-04-04 11:05:43 +0200
commit6228c8da185066e3e8824bffc47ed2d11147e84b (patch)
tree63e4483f562b09a494432056e886fd088d4ee5ac /apps/misc.c
parent134e5914a1b530a9b4c5129f5b1eac1393eadcc7 (diff)
Fix reset runtime
Change-Id: Ic1ba0c7c7883aae43100c67235dbc2db83056fe7
Diffstat (limited to 'apps/misc.c')
-rw-r--r--apps/misc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/misc.c b/apps/misc.c
index b6eaafb599..037daf0cac 100644
--- a/apps/misc.c
+++ b/apps/misc.c
@@ -576,8 +576,7 @@ long default_event_handler_ex(long event, void (*callback)(void *), void *parame
case SYS_CHARGER_DISCONNECTED:
car_adapter_mode_processing(false);
- /*reset rockbox battery runtime*/
- global_status.runtime = 0;
+ reset_runtime();
return SYS_CHARGER_DISCONNECTED;
case SYS_CAR_ADAPTER_RESUME: