diff options
Diffstat (limited to 'core/usb/usb_callbacks.c')
-rw-r--r-- | core/usb/usb_callbacks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/usb/usb_callbacks.c b/core/usb/usb_callbacks.c index 1fb73d5..f4c491b 100644 --- a/core/usb/usb_callbacks.c +++ b/core/usb/usb_callbacks.c @@ -73,7 +73,7 @@ void vcomDataRxCb(void) { PMAToUserBufferCopy(&vcomBufferRx[recvBufIn],VCOM_RX_ADDR,tailBytes); PMAToUserBufferCopy(&vcomBufferRx[0], VCOM_RX_ADDR,remaining); - recvBufIn += (newBytes % VCOM_RX_EPSIZE); + recvBufIn = (recvBufIn + newBytes ) % VCOM_RX_EPSIZE; } maxNewBytes -= newBytes; |