diff options
author | Mihail Zenkov <mihail.zenkov@gmail.com> | 2016-03-30 22:25:24 +0000 |
---|---|---|
committer | Gerrit Rockbox <gerrit@rockbox.org> | 2016-04-04 11:05:43 +0200 |
commit | 6228c8da185066e3e8824bffc47ed2d11147e84b (patch) | |
tree | 63e4483f562b09a494432056e886fd088d4ee5ac /apps/gui | |
parent | 134e5914a1b530a9b4c5129f5b1eac1393eadcc7 (diff) |
Fix reset runtime
Change-Id: Ic1ba0c7c7883aae43100c67235dbc2db83056fe7
Diffstat (limited to 'apps/gui')
-rw-r--r-- | apps/gui/usb_screen.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/gui/usb_screen.c b/apps/gui/usb_screen.c index 20af4dc3da..1b6f9c3b2a 100644 --- a/apps/gui/usb_screen.c +++ b/apps/gui/usb_screen.c @@ -96,8 +96,7 @@ static int handle_usb_events(void) case SYS_USB_DISCONNECTED: return 1; case SYS_CHARGER_DISCONNECTED: - /*reset rockbox battery runtime*/ - global_status.runtime = 0; + reset_runtime(); break; case SYS_TIMEOUT: break; |