diff options
Diffstat (limited to 'bootloader')
| -rw-r--r-- | bootloader/gigabeat-s.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bootloader/gigabeat-s.c b/bootloader/gigabeat-s.c index 5b53615..909194e 100644 --- a/bootloader/gigabeat-s.c +++ b/bootloader/gigabeat-s.c @@ -109,7 +109,7 @@ static void handle_usb(int connect_timeout) break; } - if (usb_detect() == USB_EXTRACTED) + if (usb_plugged() == USB_EXTRACTED) break; /* Cable pulled */ } @@ -376,7 +376,7 @@ void main(void) /* Do USB first since a tar or binary could be added to the MTP directory * at the time and we can untar or move after unplugging. */ - if (usb_detect() == USB_INSERTED) + if (usb_plugged() == USB_INSERTED) handle_usb(HZ*2); handle_untar(); |