main: Do not enter to usb mode if not needed
This commit is contained in:
1 parent
aa89ef8dad
commit
19a8d76e0c
1 file changed
+4
@@ -712,6 +712,8 @@ int main(int argc, char **argv) {
|
||||
}
|
||||
}
|
||||
|
||||
if ( dev_boot || dev_reboot || dev_load || dev_flash || dev_cold_flash || dev_ident || set_root || set_usb || set_rd || set_rd_flags || set_hw || set_kernel || set_nolo || set_sw || set_emmc ) {
|
||||
|
||||
while ( image_first ) {
|
||||
|
||||
usb_dev = usb_open_and_wait_for_device();
|
||||
@@ -750,6 +752,8 @@ int main(int argc, char **argv) {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in new issue
Block a user