mrobe500: Allow bootloader build without HAVE_BOOTLOADER_USB_MODE

I'm leaving it enabled because that's clearly the intent
of the bootloader, but at least there's now an easy path to disabling it
if so desired.

Change-Id: I4f4ecc9a453d376f92e411e0544b587fe4b4c864
This commit is contained in:
Solomon Peachy 2026-02-07 10:48:22 -05:00
parent b722e3c83a
commit 9057154fff
2 changed files with 6 additions and 0 deletions

View file

@ -61,7 +61,9 @@ void main(void)
backlight_init();
font_init();
button_init();
#ifdef HAVE_BOOTLOADER_USB_MODE
usb_init();
#endif
power_init();
@ -79,6 +81,7 @@ void main(void)
printf("Rockbox boot loader");
printf("Version %s", rbversion);
#ifdef HAVE_BOOTLOADER_USB_MODE
/* Enter USB mode without USB thread */
if(usb_detect() == USB_INSERTED)
{
@ -104,6 +107,7 @@ void main(void)
reset_screen();
lcd_update();
}
#endif
sleep(50);