1
0
Fork 0
forked from len0rd/rockbox

Fix reset runtime

Change-Id: Ic1ba0c7c7883aae43100c67235dbc2db83056fe7
This commit is contained in:
Mihail Zenkov 2016-03-30 22:25:24 +00:00 committed by Gerrit Rockbox
parent 134e5914a1
commit 6228c8da18
4 changed files with 8 additions and 4 deletions

View file

@ -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: