aboutsummaryrefslogtreecommitdiffstats
path: root/src/vfs/ant_rx_chardev.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vfs/ant_rx_chardev.c')
-rw-r--r--src/vfs/ant_rx_chardev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vfs/ant_rx_chardev.c b/src/vfs/ant_rx_chardev.c
index a596a88..778f0c9 100644
--- a/src/vfs/ant_rx_chardev.c
+++ b/src/vfs/ant_rx_chardev.c
@@ -307,7 +307,7 @@ int readChannelMsg(ant_channel_type eChannel, ant_channel_info_t *pstChnlInfo)
if ((iHciDataSize + ANT_HCI_HEADER_SIZE + ANT_HCI_FOOTER_SIZE + iCurrentHciPacketOffset) >=
iRxLenRead) {
// we don't have a whole packet
- iRxBufferLength = iRxLenRead - iCurrentPacketOffset;
+ iRxBufferLength = iRxLenRead - iCurrentHciPacketOffset;
memcpy(aucRxBuffer, &aucRxBuffer[iCurrentHciPacketOffset], iRxBufferLength);
// the increment at the end should push us out of the while loop
} else