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:
Frank Gevaerts 2010-12-21 17:24:00 +00:00
parent d5c082598d
commit 303aefc406

View file

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