We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d94452f commit 842d8eeCopy full SHA for 842d8ee
1 file changed
STM32F1/cores/maple/usb_serial.cpp
@@ -126,12 +126,17 @@ size_t n = 0;
126
}
127
128
129
- if (sent == USB_CDCACM_TX_EPSIZE) {
130
- while (usb_cdcacm_is_transmitting() != 0) {
131
- }
132
- /* flush out to avoid having the pc wait for more data */
133
- usb_cdcacm_tx(NULL, 0);
134
+#if 0
+// this code leads to a serious performance drop and appears to be
+// unnecessary - everything seems to work fine without, -jcw, 2015-11-05
+// see http://stm32duino.com/posting.php?mode=quote&f=3&p=7746
+ if (sent == USB_CDCACM_TX_EPSIZE) {
+ while (usb_cdcacm_is_transmitting() != 0) {
135
+ }
136
+ /* flush out to avoid having the pc wait for more data */
137
+ usb_cdcacm_tx(NULL, 0);
138
139
+#endif
140
return n;
141
142
0 commit comments