diff options
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 59c8bc2141..ee46eb8eb4 100755 --- a/bootloader/mrobe500.c +++ b/bootloader/mrobe500.c | |||
@@ -9,10 +9,10 @@ | |||
9 | * | 9 | * |
10 | * Copyright (C) 2007 by Karl Kurbjun | 10 | * Copyright (C) 2007 by Karl Kurbjun |
11 | * | 11 | * |
12 | * This program is free software; you can redistribute it and/or | 12 | * This program is free software; you can redistribute it and/or |
13 | * modify it under the terms of the GNU General Public License | 13 | * modify it under the terms of the GNU General Public License |
14 | * as published by the Free Software Foundation; either version 2 | 14 | * as published by the Free Software Foundation; either version 2 |
15 | * of the License, or (at your option) any later version. | 15 | * of the License, or (at your option) any later version. |
16 | * | 16 | * |
17 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | 17 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY |
18 | * KIND, either express or implied. | 18 | * KIND, either express or implied. |
@@ -220,7 +220,7 @@ void main(void) | |||
220 | usb_init(); | 220 | usb_init(); |
221 | 221 | ||
222 | /* Enter USB mode without USB thread */ | 222 | /* Enter USB mode without USB thread */ |
223 | if(usb_detect()) | 223 | if(usb_detect() == USB_INSERTED) |
224 | { | 224 | { |
225 | const char msg[] = "Bootloader USB mode"; | 225 | const char msg[] = "Bootloader USB mode"; |
226 | reset_screen(); | 226 | reset_screen(); |
@@ -233,7 +233,7 @@ void main(void) | |||
233 | sleep(HZ/20); | 233 | sleep(HZ/20); |
234 | usb_enable(true); | 234 | usb_enable(true); |
235 | 235 | ||
236 | while (usb_detect()) | 236 | while (usb_detect() == USB_INSERTED) |
237 | { | 237 | { |
238 | ata_spin(); /* Prevent the drive from spinning down */ | 238 | ata_spin(); /* Prevent the drive from spinning down */ |
239 | sleep(HZ); | 239 | sleep(HZ); |