summaryrefslogtreecommitdiff
path: root/bootloader/gigabeat-s.c
diff options
context:
space:
mode:
Diffstat (limited to 'bootloader/gigabeat-s.c')
-rw-r--r--bootloader/gigabeat-s.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bootloader/gigabeat-s.c b/bootloader/gigabeat-s.c
index 5b5361530b..909194e1b2 100644
--- a/bootloader/gigabeat-s.c
+++ b/bootloader/gigabeat-s.c
@@ -109,7 +109,7 @@ static void handle_usb(int connect_timeout)
109 break; 109 break;
110 } 110 }
111 111
112 if (usb_detect() == USB_EXTRACTED) 112 if (usb_plugged() == USB_EXTRACTED)
113 break; /* Cable pulled */ 113 break; /* Cable pulled */
114 } 114 }
115 115
@@ -376,7 +376,7 @@ void main(void)
376 376
377 /* Do USB first since a tar or binary could be added to the MTP directory 377 /* Do USB first since a tar or binary could be added to the MTP directory
378 * at the time and we can untar or move after unplugging. */ 378 * at the time and we can untar or move after unplugging. */
379 if (usb_detect() == USB_INSERTED) 379 if (usb_plugged() == USB_INSERTED)
380 handle_usb(HZ*2); 380 handle_usb(HZ*2);
381 381
382 handle_untar(); 382 handle_untar();