AMS: fix usb initialization in bootloader

Regression after 8b8b85433f

Change-Id: I86389be0b85c5c2ad8a32d7089a6a79a6b7c8708
This commit is contained in:
Mihail Zenkov 2015-06-01 23:41:15 +00:00 committed by Michael Giacomelli
parent e7550a4f6e
commit 2ec6fbc827

View file

@ -137,6 +137,7 @@ void main(void)
{
#ifdef HAVE_BOOTLOADER_USB_MODE
error(EDISK, ret, false);
usb_start_monitoring();
usb_mode();
#else
error(EDISK, ret, true);
@ -152,6 +153,7 @@ void main(void)
{
#ifdef HAVE_BOOTLOADER_USB_MODE
error(EBOOTFILE, ret, false);
usb_start_monitoring();
usb_mode();
#else
error(EBOOTFILE, ret, true);