diff options
author | William Wilgus <wilgus.william@gmail.com> | 2021-10-31 12:30:27 -0400 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2021-10-31 12:30:27 -0400 |
commit | 7a6737f4713a15fae7c4850395615804a09c742b (patch) | |
tree | c294d05edbee7d5ecc33a339b52805553df24f41 /firmware/usb.c | |
parent | 894a9d9063873dfbb4d0f535da7c335638c00fec (diff) | |
download | rockbox-7a6737f4713a15fae7c4850395615804a09c742b.tar.gz rockbox-7a6737f4713a15fae7c4850395615804a09c742b.zip |
USB Events fix red on devices without HAVE_USB_POWER
Change-Id: I112e6379d4bed019d7e047e5802f104e250d926e
Diffstat (limited to 'firmware/usb.c')
-rw-r--r-- | firmware/usb.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/usb.c b/firmware/usb.c index 9d071578b5..898df0d434 100644 --- a/firmware/usb.c +++ b/firmware/usb.c | |||
@@ -477,6 +477,9 @@ static void NORETURN_ATTR usb_thread(void) | |||
477 | 477 | ||
478 | usb_stack_enable(true); | 478 | usb_stack_enable(true); |
479 | #ifndef BOOTLOADER | 479 | #ifndef BOOTLOADER |
480 | #ifndef HAVE_USB_POWER | ||
481 | int usb_mode = 0; | ||
482 | #endif | ||
480 | send_event(SYS_EVENT_USB_INSERTED, &usb_mode); | 483 | send_event(SYS_EVENT_USB_INSERTED, &usb_mode); |
481 | #endif | 484 | #endif |
482 | /* Power (charging-only) button */ | 485 | /* Power (charging-only) button */ |