Merge branch 'development' of https://github.com/rogerclarkmelbourne/Arduino_STM32 into development
This commit is contained in:
commit
508df14fdd
|
@ -126,12 +126,17 @@ size_t n = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (sent == USB_CDCACM_TX_EPSIZE) {
|
#if 0
|
||||||
while (usb_cdcacm_is_transmitting() != 0) {
|
// this code leads to a serious performance drop and appears to be
|
||||||
}
|
// unnecessary - everything seems to work fine without, -jcw, 2015-11-05
|
||||||
/* flush out to avoid having the pc wait for more data */
|
// see http://stm32duino.com/posting.php?mode=quote&f=3&p=7746
|
||||||
usb_cdcacm_tx(NULL, 0);
|
if (sent == USB_CDCACM_TX_EPSIZE) {
|
||||||
}
|
while (usb_cdcacm_is_transmitting() != 0) {
|
||||||
|
}
|
||||||
|
/* flush out to avoid having the pc wait for more data */
|
||||||
|
usb_cdcacm_tx(NULL, 0);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
return n;
|
return n;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue