From 5611e8a68cbf2fe97e26b55caac0f48f88ae8edb Mon Sep 17 00:00:00 2001 From: Pali Rohár Date: Tue, 18 Nov 2014 23:51:48 +0100 Subject: operations: When reboot is not supported use usb_switch_to_nolo() --- src/operations.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/operations.c b/src/operations.c index 2b2de2d..ae06b1d 100644 --- a/src/operations.c +++ b/src/operations.c @@ -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; } } -- cgit v1.2.3