summaryrefslogtreecommitdiff
path: root/bootloader/imx233.c
diff options
context:
space:
mode:
Diffstat (limited to 'bootloader/imx233.c')
-rw-r--r--bootloader/imx233.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bootloader/imx233.c b/bootloader/imx233.c
index 276a334c56..3d66403cc0 100644
--- a/bootloader/imx233.c
+++ b/bootloader/imx233.c
@@ -73,7 +73,7 @@ static void usb_mode(int connect_timeout)
73 break; 73 break;
74 } 74 }
75 75
76 if(!usb_plugged()) 76 if(usb_detect() == USB_EXTRACTED)
77 break; /* Cable pulled */ 77 break; /* Cable pulled */
78 } 78 }
79 79
@@ -149,7 +149,7 @@ void main(uint32_t arg, uint32_t addr)
149 if((ret = disk_mount_all()) <= 0) 149 if((ret = disk_mount_all()) <= 0)
150 error(EDISK, ret, false); 150 error(EDISK, ret, false);
151 151
152 if(usb_plugged()) 152 if(usb_detect() == USB_INSERTED)
153 usb_mode(HZ); 153 usb_mode(HZ);
154 154
155 printf("Loading firmware"); 155 printf("Loading firmware");