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
This commit is contained in:
Linus Nielsen Feltzing 2006-02-19 11:37:30 +00:00
parent 2c3ae4a3ab
commit 8f1db26863

View file

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