usb-dev: reboot to image 0

Since this is a failsafe bootloader, reboot to Image 0.

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2019-04-05 17:33:28 +08:00
parent eaa0d63ccb
commit fd76536351

View File

@ -186,7 +186,7 @@ void usb_setup(struct usb_device *dev, const struct usb_setup_request *setup)
usb_disconnect(); usb_disconnect();
// Issue a reboot // Issue a reboot
reboot_to_image(1); reboot_to_image(0);
while (1) while (1)
; ;
return; return;