From 067c84ea2ca76dd67a5eda057147967d2ac6e2ef Mon Sep 17 00:00:00 2001 From: Pali Rohár Date: Tue, 20 Nov 2012 21:52:03 +0100 Subject: usb-device: Fix usb_switch_to_cold --- src/usb-device.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/usb-device.c') diff --git a/src/usb-device.c b/src/usb-device.c index 33009be..e2290b6 100644 --- a/src/usb-device.c +++ b/src/usb-device.c @@ -307,7 +307,9 @@ void usb_switch_to_nolo(struct usb_device_info * dev) { void usb_switch_to_cold(struct usb_device_info * dev) { printf("\nSwitching to Cold Flash mode...\n"); - printf_and_wait("Unplug USB cable, turn device off, press ENTER and plug USB cable again"); + + if ( dev->flash_device->protocol != FLASH_COLD ) + printf_and_wait("Unplug USB cable, turn device off, press ENTER and plug USB cable again"); } -- cgit v1.2.3