Fork of https://developer.mbed.org/users/bscott/code/STM32_USBDevice/

Fork of STM32_USBDevice by Bradley Scott

Revision:
74:8e2832c1046a
Parent:
73:fa395f2d24ba
Child:
76:eef92651f52f
--- a/USBDevice/USBDevice.cpp	Tue Oct 24 12:32:59 2017 +0200
+++ b/USBDevice/USBDevice.cpp	Tue Oct 24 16:49:54 2017 +0200
@@ -867,7 +867,7 @@
 #if (USB_DEVICE_WRITE_BLOCKING_TIMEOUT_MS != 0)
         /* Escape blocking write if blocking write timeout is configured */
         if ((osKernelGetTickCount()-tstart) > (USB_DEVICE_WRITE_BLOCKING_TIMEOUT_MS)) {
-            break;
+            busReset();
         }
 #endif
     } while ((result == EP_PENDING) && configured());