diff options
author | William Wilgus <wilgus.william@gmail.com> | 2021-10-31 21:36:21 -0400 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2021-10-31 21:36:21 -0400 |
commit | 684565b8f34d0f2bb9012b5a20499ed64db38812 (patch) | |
tree | 7cb1f90974d8edda36e82b85a6603c59b5f602a7 /firmware/usb.c | |
parent | d72a0ed65d9cd8acc61b4ead0cc99057877a4c9f (diff) | |
download | rockbox-684565b8f34d0f2bb9012b5a20499ed64db38812.tar.gz rockbox-684565b8f34d0f2bb9012b5a20499ed64db38812.zip |
USB fix red for device without HAVE_USB_POWER again.
Change-Id: I3122d532cbb8d5b5cb9040f08707c1514bc1b18e
Diffstat (limited to 'firmware/usb.c')
-rw-r--r-- | firmware/usb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/usb.c b/firmware/usb.c index 4e13295509..4c122e8eea 100644 --- a/firmware/usb.c +++ b/firmware/usb.c | |||
@@ -478,7 +478,7 @@ static void NORETURN_ATTR usb_thread(void) | |||
478 | usb_stack_enable(true); | 478 | usb_stack_enable(true); |
479 | #ifndef BOOTLOADER | 479 | #ifndef BOOTLOADER |
480 | #ifndef HAVE_USB_POWER | 480 | #ifndef HAVE_USB_POWER |
481 | int usb_mode = USBMODE_DEFAULT; | 481 | int usb_mode = -1; |
482 | #endif | 482 | #endif |
483 | send_event(SYS_EVENT_USB_INSERTED, &usb_mode); | 483 | send_event(SYS_EVENT_USB_INSERTED, &usb_mode); |
484 | #endif | 484 | #endif |