diff options
-rw-r--r-- | libmaple/usb/usb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmaple/usb/usb.c b/libmaple/usb/usb.c index 923e54b..39bf31a 100644 --- a/libmaple/usb/usb.c +++ b/libmaple/usb/usb.c @@ -376,8 +376,8 @@ uint16 usbSendBytes(uint8* sendBuf, uint16 len) { if (loaded) { UserToPMABufferCopy(sendBuf,VCOM_TX_ADDR + countTx, loaded); _SetEPTxCount(VCOM_TX_ENDP, countTx+loaded); - _SetEPTxValid(VCOM_TX_ENDP); countTx += loaded; + _SetEPTxValid(VCOM_TX_ENDP); } return loaded; |