Fixed typo bug
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 @@
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