Merge branch 'development' of https://github.com/rogerclarkmelbourne/Arduino_STM32 into development

This commit is contained in:
Roger Clark 2015-11-07 20:44:43 +11:00
commit 508df14fdd
1 changed files with 11 additions and 6 deletions

View File

@ -126,12 +126,17 @@ size_t n = 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);
}
#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) {
}
/* flush out to avoid having the pc wait for more data */
usb_cdcacm_tx(NULL, 0);
}
#endif
return n;
}