USB Events fix red on devices without HAVE_USB_POWER
Change-Id: I112e6379d4bed019d7e047e5802f104e250d926e
This commit is contained in:
parent
894a9d9063
commit
7a6737f471
1 changed files with 3 additions and 0 deletions
|
@ -477,6 +477,9 @@ static void NORETURN_ATTR usb_thread(void)
|
||||||
|
|
||||||
usb_stack_enable(true);
|
usb_stack_enable(true);
|
||||||
#ifndef BOOTLOADER
|
#ifndef BOOTLOADER
|
||||||
|
#ifndef HAVE_USB_POWER
|
||||||
|
int usb_mode = 0;
|
||||||
|
#endif
|
||||||
send_event(SYS_EVENT_USB_INSERTED, &usb_mode);
|
send_event(SYS_EVENT_USB_INSERTED, &usb_mode);
|
||||||
#endif
|
#endif
|
||||||
/* Power (charging-only) button */
|
/* Power (charging-only) button */
|
||||||
|
|
Loading…
Reference in a new issue