mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
Make usb_detect() return USB_UNPOWERED instead of USB_EXTRACTED. Without that, not all needed disconnect handling is done in usb.c
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28874 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
d5c082598d
commit
303aefc406
1 changed files with 1 additions and 1 deletions
|
|
@ -74,7 +74,7 @@ int usb_detect(void)
|
||||||
else if(connected)
|
else if(connected)
|
||||||
return USB_POWERED;
|
return USB_POWERED;
|
||||||
else
|
else
|
||||||
return USB_EXTRACTED;
|
return USB_UNPOWERED;
|
||||||
#else
|
#else
|
||||||
return connected?USB_INSERTED:USB_EXTRACTED;
|
return connected?USB_INSERTED:USB_EXTRACTED;
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue