Skip to content

Commit

Permalink
Fixing usb.c countTx race; thanks, geoffreymbrown!
Browse files Browse the repository at this point in the history
  • Loading branch information
Marti Bolivar committed Feb 9, 2011
1 parent 90058cf commit d0074d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libmaple/usb/usb.c
Expand Up @@ -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;
Expand Down

0 comments on commit d0074d2

Please sign in to comment.