usb-device: Rename usb_switch_to_mkii to usb_switch_to_update
This commit is contained in:
1 parent
78fc280577
commit
feb2d3ac6a
2 files changed
+4
-2
No files matched your search
+3
-1
@@ -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
@@ -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
|
||||||
Reference in new issue
Block a user