diff options
author | Pali Rohár <pali.rohar@gmail.com> | 2014-11-18 23:51:48 +0100 |
---|---|---|
committer | Pali Rohár <pali.rohar@gmail.com> | 2014-11-18 23:51:48 +0100 |
commit | 5611e8a68cbf2fe97e26b55caac0f48f88ae8edb (patch) | |
tree | 5194dbc261c220427d5a28fd1a9bc5663420aa7f /src/operations.c | |
parent | bc4aeefab5c80308ef96ea33e3085c72094b622b (diff) | |
download | 0xFFFF-5611e8a68cbf2fe97e26b55caac0f48f88ae8edb.tar.bz2 |
operations: When reboot is not supported use usb_switch_to_nolo()
Diffstat (limited to 'src/operations.c')
-rw-r--r-- | src/operations.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } } |