USB Events fix red on devices without HAVE_USB_POWER

Change-Id: I112e6379d4bed019d7e047e5802f104e250d926e
This commit is contained in:
William Wilgus 2021-10-31 12:30:27 -04:00
parent 894a9d9063
commit 7a6737f471
1 changed files with 3 additions and 0 deletions

View File

@ -477,6 +477,9 @@ static void NORETURN_ATTR usb_thread(void)
usb_stack_enable(true);
#ifndef BOOTLOADER
#ifndef HAVE_USB_POWER
int usb_mode = 0;
#endif
send_event(SYS_EVENT_USB_INSERTED, &usb_mode);
#endif
/* Power (charging-only) button */