diff options
| author | Jens Arnold <amiconn@rockbox.org> | 2008-07-06 12:14:13 +0000 |
|---|---|---|
| committer | Jens Arnold <amiconn@rockbox.org> | 2008-07-06 12:14:13 +0000 |
| commit | b1e16d21615397802930d66905d60fc6fee25b3d (patch) | |
| tree | 6a41af0eb4cd4742f8300f4478c6b971e9d6c25a /bootloader | |
| parent | f2998a81f27f208d18da32d3bb54010136781eca (diff) | |
| download | rockbox-b1e16d21615397802930d66905d60fc6fee25b3d.zip rockbox-b1e16d21615397802930d66905d60fc6fee25b3d.tar.gz rockbox-b1e16d21615397802930d66905d60fc6fee25b3d.tar.bz2 rockbox-b1e16d21615397802930d66905d60fc6fee25b3d.tar.xz | |
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 'bootloader')
| -rwxr-xr-x | bootloader/mrobe500.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/bootloader/mrobe500.c b/bootloader/mrobe500.c index 59c8bc2..ee46eb8 100755 --- a/bootloader/mrobe500.c +++ b/bootloader/mrobe500.c @@ -9,10 +9,10 @@ *
* Copyright (C) 2007 by Karl Kurbjun
*
- * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. + * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
* KIND, either express or implied.
@@ -220,7 +220,7 @@ void main(void) usb_init();
/* Enter USB mode without USB thread */
- if(usb_detect())
+ if(usb_detect() == USB_INSERTED)
{
const char msg[] = "Bootloader USB mode";
reset_screen();
@@ -233,7 +233,7 @@ void main(void) sleep(HZ/20);
usb_enable(true);
- while (usb_detect())
+ while (usb_detect() == USB_INSERTED)
{
ata_spin(); /* Prevent the drive from spinning down */
sleep(HZ);
|