operations: When reboot is not supported use usb_switch_to_nolo()

This commit is contained in:
Pali Rohár committed 2014-11-18 23:51:48 +01:00
1 parent bc4aeefab5
commit 5611e8a68c
1 file changed
+2 -2
+2 -2
View File
@@ -255,8 +255,8 @@ int dev_reboot_device(struct device_info * dev) {
else if ( protocol == FLASH_MKII ) else if ( protocol == FLASH_MKII )
return mkii_reboot_device(dev->usb); return mkii_reboot_device(dev->usb);
else { else {
ERROR("Rebooting device in RAW disk mode is not supported"); usb_switch_to_nolo(dev->usb);
return -1; return -EAGAIN;
} }
} }