summaryrefslogtreecommitdiffstats
path: root/flash/bootbox/main.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2008-07-06 12:14:13 +0000
committerJens Arnold <amiconn@rockbox.org>2008-07-06 12:14:13 +0000
commitb1e16d21615397802930d66905d60fc6fee25b3d (patch)
tree6a41af0eb4cd4742f8300f4478c6b971e9d6c25a /flash/bootbox/main.c
parentf2998a81f27f208d18da32d3bb54010136781eca (diff)
downloadrockbox-b1e16d21615397802930d66905d60fc6fee25b3d.tar.gz
rockbox-b1e16d21615397802930d66905d60fc6fee25b3d.tar.bz2
rockbox-b1e16d21615397802930d66905d60fc6fee25b3d.zip
Repair charging screen on archos. usb_detect() doesn't return a boolean since 2007-09-04. Fixed same problem in the m:robe 500 bootloader and in bootbox.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17955 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'flash/bootbox/main.c')
-rw-r--r--flash/bootbox/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/flash/bootbox/main.c b/flash/bootbox/main.c
index 037ffb0b84..96020c3d00 100644
--- a/flash/bootbox/main.c
+++ b/flash/bootbox/main.c
@@ -115,7 +115,7 @@ void charging_screen(void)
break; /* start */
else
{
- if (usb_detect())
+ if (usb_detect() == USB_INSERTED)
break;
else if (!charger_inserted())
power_off(); /* charger removed: power down */
@@ -192,7 +192,7 @@ void main(void)
//disk_init();
usb_start_monitoring();
- while (usb_detect())
+ while (usb_detect() == USB_INSERTED)
{ /* enter USB mode early, before trying to mount */
if (button_get_w_tmo(HZ/10) == SYS_USB_CONNECTED)
{