operations: When reboot is not supported use usb_switch_to_nolo()
This commit is contained in:
1 parent
bc4aeefab5
commit
5611e8a68c
1 file changed
+2
-2
+2
-2
@@ -255,8 +255,8 @@ int dev_reboot_device(struct device_info * dev) {
|
||||
else if ( protocol == FLASH_MKII )
|
||||
return mkii_reboot_device(dev->usb);
|
||||
else {
|
||||
ERROR("Rebooting device in RAW disk mode is not supported");
|
||||
return -1;
|
||||
usb_switch_to_nolo(dev->usb);
|
||||
return -EAGAIN;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user