1
0
Fork 0
forked from len0rd/rockbox

Use USB events for storing plugin_menu state

use usb connected callback to cancel menu reentry after USB plug/unplug

Change-Id: I8267deed6e8ada94ca527392f56f50ef22def1d7
This commit is contained in:
William Wilgus 2021-10-31 12:14:50 -04:00
parent 7a6737f471
commit d72a0ed65d
4 changed files with 16 additions and 6 deletions

View file

@ -478,7 +478,7 @@ static void NORETURN_ATTR usb_thread(void)
usb_stack_enable(true);
#ifndef BOOTLOADER
#ifndef HAVE_USB_POWER
int usb_mode = 0;
int usb_mode = USBMODE_DEFAULT;
#endif
send_event(SYS_EVENT_USB_INSERTED, &usb_mode);
#endif