forked from len0rd/rockbox
Now the CPU is idle in USB mode
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7024 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
9b226fef0e
commit
a10bb59331
1 changed files with 2 additions and 0 deletions
|
@ -253,6 +253,7 @@ static void usb_thread(void)
|
|||
#ifdef USB_REALLY_BRAVE
|
||||
usb_slave_mode(true);
|
||||
usb_state = USB_INSERTED;
|
||||
cpu_idle_mode(true);
|
||||
#else
|
||||
system_reboot();
|
||||
#endif
|
||||
|
@ -283,6 +284,7 @@ static void usb_thread(void)
|
|||
some threads might not have acknowledged the
|
||||
insertion */
|
||||
usb_slave_mode(false);
|
||||
cpu_idle_mode(false);
|
||||
}
|
||||
|
||||
usb_state = USB_EXTRACTED;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue