usb-device: Rename usb_switch_to_mkii to usb_switch_to_update

This commit is contained in:
Pali Rohár committed 2014-11-18 23:26:50 +01:00
1 parent 78fc280577
commit feb2d3ac6a
2 files changed
+4 -2

No files matched your search

+3 -1
View File
@@ -369,7 +369,7 @@ void usb_switch_to_cold(struct usb_device_info * dev) {
} }
void usb_switch_to_mkii(struct usb_device_info * dev) { void usb_switch_to_update(struct usb_device_info * dev) {
printf("\nSwitching to Update mode...\n"); printf("\nSwitching to Update mode...\n");
@@ -377,6 +377,8 @@ void usb_switch_to_mkii(struct usb_device_info * dev) {
leave_cold_flash(dev); leave_cold_flash(dev);
else if ( dev->flash_device->protocol == FLASH_NOLO ) else if ( dev->flash_device->protocol == FLASH_NOLO )
nolo_boot_device(dev, "update"); nolo_boot_device(dev, "update");
else if ( dev->flash_device->protocol == FLASH_MKII )
mkii_reboot_device(dev);
else if ( dev->flash_device->protocol == FLASH_DISK ) else if ( dev->flash_device->protocol == FLASH_DISK )
printf_and_wait("Unplug USB cable, turn device off, press ENTER and plug USB cable again"); printf_and_wait("Unplug USB cable, turn device off, press ENTER and plug USB cable again");
+1 -1
View File
@@ -56,7 +56,7 @@ void usb_close_device(struct usb_device_info * dev);
void usb_switch_to_nolo(struct usb_device_info * dev); 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);
void usb_switch_to_mkii(struct usb_device_info * dev); void usb_switch_to_update(struct usb_device_info * dev);
void usb_switch_to_disk(struct usb_device_info * dev); void usb_switch_to_disk(struct usb_device_info * dev);
#endif #endif