diff options
Diffstat (limited to 'apps/gui/usb_screen.c')
-rw-r--r-- | apps/gui/usb_screen.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/gui/usb_screen.c b/apps/gui/usb_screen.c index f74747fd5c..527ae9fd15 100644 --- a/apps/gui/usb_screen.c +++ b/apps/gui/usb_screen.c | |||
@@ -91,6 +91,10 @@ static int handle_usb_events(void) | |||
91 | case SYS_USB_DISCONNECTED: | 91 | case SYS_USB_DISCONNECTED: |
92 | usb_acknowledge(SYS_USB_DISCONNECTED_ACK); | 92 | usb_acknowledge(SYS_USB_DISCONNECTED_ACK); |
93 | return 1; | 93 | return 1; |
94 | case SYS_CHARGER_DISCONNECTED: | ||
95 | /*reset rockbox battery runtime*/ | ||
96 | global_status.runtime = 0; | ||
97 | break; | ||
94 | case SYS_TIMEOUT: | 98 | case SYS_TIMEOUT: |
95 | break; | 99 | break; |
96 | } | 100 | } |