summaryrefslogtreecommitdiff
path: root/firmware/usb.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/usb.c')
-rw-r--r--firmware/usb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/usb.c b/firmware/usb.c
index 7c43a8ba90..3cd93d8be5 100644
--- a/firmware/usb.c
+++ b/firmware/usb.c
@@ -303,16 +303,20 @@ static void usb_thread(void)
303#endif 303#endif
304 304
305 usb_state = USB_EXTRACTED; 305 usb_state = USB_EXTRACTED;
306#ifdef HAVE_USBSTACK
306 if(exclusive_ata_access) 307 if(exclusive_ata_access)
307 { 308 {
308 exclusive_ata_access = false; 309 exclusive_ata_access = false;
310#endif
309 /* Tell all threads that we are back in business */ 311 /* Tell all threads that we are back in business */
310 num_acks_to_expect = 312 num_acks_to_expect =
311 queue_broadcast(SYS_USB_DISCONNECTED, 0) - 1; 313 queue_broadcast(SYS_USB_DISCONNECTED, 0) - 1;
312 waiting_for_ack = true; 314 waiting_for_ack = true;
313 DEBUGF("USB extracted. Waiting for ack from %d threads...\n", 315 DEBUGF("USB extracted. Waiting for ack from %d threads...\n",
314 num_acks_to_expect); 316 num_acks_to_expect);
317#ifdef HAVE_USBSTACK
315 } 318 }
319#endif
316 break; 320 break;
317 321
318 case SYS_USB_DISCONNECTED_ACK: 322 case SYS_USB_DISCONNECTED_ACK: