1
0
Fork 0
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:
Linus Nielsen Feltzing 2005-07-05 08:02:48 +00:00
parent 9b226fef0e
commit a10bb59331

View file

@ -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;