summaryrefslogtreecommitdiffstats
path: root/bootloader/gigabeat.c
diff options
context:
space:
mode:
Diffstat (limited to 'bootloader/gigabeat.c')
-rw-r--r--bootloader/gigabeat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bootloader/gigabeat.c b/bootloader/gigabeat.c
index e482c70d16..704548b65a 100644
--- a/bootloader/gigabeat.c
+++ b/bootloader/gigabeat.c
@@ -66,7 +66,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();
@@ -78,7 +78,7 @@ void main(void)
sleep(HZ/20);
usb_enable(true);
- while (usb_detect())
+ while (usb_detect() == USB_INSERTED)
sleep(HZ);
usb_enable(false);