Second attempt to add availableForWrite() to USB Serial

This commit is contained in:
Roger Clark 2018-05-27 16:35:06 +10:00
parent 141bcd2ad1
commit 4db3994d1c
1 changed files with 1 additions and 1 deletions

View File

@ -458,7 +458,7 @@ uint8 usb_cdcacm_is_transmitting(void) {
int usb_cdcacm_tx_available()
{
return CDC_SERIAL_TX_BUFFER_SIZE - usb_cdcacm_get_pending();
return CDC_SERIAL_TX_BUFFER_SIZE - usb_cdcacm_get_pending() - 1;
}
uint16 usb_cdcacm_get_pending(void) {