forked from len0rd/rockbox
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:
parent
2c3ae4a3ab
commit
8f1db26863
1 changed files with 1 additions and 1 deletions
|
|
@ -599,7 +599,7 @@ void usb_start_monitoring(void)
|
||||||
|
|
||||||
bool usb_inserted(void)
|
bool usb_inserted(void)
|
||||||
{
|
{
|
||||||
return usb_state == USB_INSERTED;
|
return usb_state == USB_INSERTED || usb_state == USB_POWERED;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_USB_POWER
|
#ifdef HAVE_USB_POWER
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue