mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
Make sure the system is boosted before enabling USB hardware.
Change-Id: Ib44d29384f359dff24f0ce012667d9ce93328dc2
This commit is contained in:
parent
9f364a13c6
commit
7432af0958
1 changed files with 5 additions and 2 deletions
|
|
@ -33,10 +33,13 @@ static int usb_status = USB_EXTRACTED;
|
|||
void usb_enable(bool on)
|
||||
{
|
||||
#if defined(HAVE_USBSTACK)
|
||||
if (on)
|
||||
if (on){
|
||||
cpu_boost(1);
|
||||
usb_core_init();
|
||||
else
|
||||
} else {
|
||||
usb_core_exit();
|
||||
cpu_boost(0);
|
||||
}
|
||||
#else
|
||||
(void)on;
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue