forked from len0rd/rockbox
Try to get some control over #ifdef hell in usb.c by refactoring and inline function use. SYS_USB_DISCONNECTED_ACK hasn't been doing anything useful for the USB thread; remove it. USB thread simply ignores that value. Observe only valid usb_state transitions.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29084 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
980225c3e2
commit
453550a687
15 changed files with 334 additions and 315 deletions
|
|
@ -426,7 +426,6 @@ static void thread(void)
|
|||
break;
|
||||
case SYS_USB_DISCONNECTED:
|
||||
in_usb_mode = false;
|
||||
rb->usb_acknowledge(SYS_USB_DISCONNECTED_ACK);
|
||||
break;
|
||||
case SYS_POWEROFF:
|
||||
exit_reason = "power off";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue