From 82dd53542902f980a6111e62b6732d08c5b3ed47 Mon Sep 17 00:00:00 2001 From: Pali Rohár Date: Wed, 21 Nov 2012 14:15:22 +0100 Subject: operations: Rebooting in cold flash mode does not make sense, instead boot to NOLO --- src/operations.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/operations.c') diff --git a/src/operations.c b/src/operations.c index 02adaf4..4a63c09 100644 --- a/src/operations.c +++ b/src/operations.c @@ -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; } -- cgit v1.2.3