operations: Rebooting in cold flash mode does not make sense, instead boot to NOLO

This commit is contained in:
Pali Rohár committed 2012-11-21 14:15:22 +01:00
1 parent 288726981a
commit 82dd535429
1 file changed
+4 -2
+4 -2
View File
@@ -249,12 +249,14 @@ int dev_reboot_device(struct device_info * dev) {
enum usb_flash_protocol protocol = dev->usb->flash_device->protocol;
if ( protocol == FLASH_NOLO )
if ( protocol == FLASH_COLD )
return leave_cold_flash(dev->usb);
else if ( protocol == FLASH_NOLO )
return nolo_reboot_device(dev->usb);
else if ( protocol == FLASH_MKII )
return mkii_reboot_device(dev->usb);
else {
ERROR("Rebooting device in Cold Flash or RAW disk mode is not supported");
ERROR("Rebooting device in RAW disk mode is not supported");
return -1;
}