summaryrefslogtreecommitdiff
path: root/firmware/usb.c
diff options
context:
space:
mode:
authorAmaury Pouly <pamaury@rockbox.org>2011-10-27 10:35:45 +0000
committerAmaury Pouly <pamaury@rockbox.org>2011-10-27 10:35:45 +0000
commit320c3c2ca9839e17db222f25da3ef00c42bcde01 (patch)
tree9b26a75cef1a5345c72475c7e05e3b239ef85163 /firmware/usb.c
parentd3ad36f6e7c7ec3586f5e2c7c880593beb3f9fc5 (diff)
downloadrockbox-320c3c2ca9839e17db222f25da3ef00c42bcde01.tar.gz
rockbox-320c3c2ca9839e17db222f25da3ef00c42bcde01.zip
usb: add forgotten break in usb switch, this could lead to unwanted code being execute like USB_QUIT to be sent on hotswap !
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30843 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/usb.c')
-rw-r--r--firmware/usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/usb.c b/firmware/usb.c
index 4a6ab2231c..4e71c06119 100644
--- a/firmware/usb.c
+++ b/firmware/usb.c
@@ -506,6 +506,7 @@ static void usb_thread(void)
506 case USB_REENABLE: 506 case USB_REENABLE:
507#endif 507#endif
508 usb_handle_hotswap(ev.id); 508 usb_handle_hotswap(ev.id);
509 break;
509#endif 510#endif
510 511
511 /* FIREWIRE */ 512 /* FIREWIRE */
@@ -738,7 +739,6 @@ void usb_close(void)
738 tick_remove_task(usb_tick); 739 tick_remove_task(usb_tick);
739#endif 740#endif
740 usb_monitor_enabled = false; 741 usb_monitor_enabled = false;
741
742 queue_post(&usb_queue, USB_QUIT, 0); 742 queue_post(&usb_queue, USB_QUIT, 0);
743 thread_wait(thread); 743 thread_wait(thread);
744} 744}