summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2006-02-19 11:37:30 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2006-02-19 11:37:30 +0000
commit8f1db26863c51264b9e71776c3761aa72ffcad39 (patch)
treeb1420f50da4301cb538d377010a015be87db6655 /firmware
parent2c3ae4a3ab016d457d7405e5f782943cec928692 (diff)
downloadrockbox-8f1db26863c51264b9e71776c3761aa72ffcad39.tar.gz
rockbox-8f1db26863c51264b9e71776c3761aa72ffcad39.tar.bz2
rockbox-8f1db26863c51264b9e71776c3761aa72ffcad39.zip
Patch #1434442 by Mikael Magnusson - Prevent shutdown when charging from USB
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8733 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/usb.c b/firmware/usb.c
index c71111a548..8f80070c24 100644
--- a/firmware/usb.c
+++ b/firmware/usb.c
@@ -599,7 +599,7 @@ void usb_start_monitoring(void)
bool usb_inserted(void)
{
- return usb_state == USB_INSERTED;
+ return usb_state == USB_INSERTED || usb_state == USB_POWERED;
}
#ifdef HAVE_USB_POWER