usb-device: Fix usb_switch_to_cold

This commit is contained in:
Pali Rohár committed 2012-11-20 21:52:03 +01:00
1 parent 29c2b60670
commit 067c84ea2c
1 file changed
+3 -1
+3 -1
View File
@@ -307,7 +307,9 @@ void usb_switch_to_nolo(struct usb_device_info * dev) {
void usb_switch_to_cold(struct usb_device_info * dev) { void usb_switch_to_cold(struct usb_device_info * dev) {
printf("\nSwitching to Cold Flash mode...\n"); 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");
} }