aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Friesen <jeremy.friesen@thisisant.com>2013-04-25 10:13:53 -0600
committerJeremy Friesen <jeremy.friesen@thisisant.com>2013-04-25 10:13:53 -0600
commit4b5bfd9046bfa0796cf2dac6c1063cb3fa2540cf (patch)
treeac102ee25584408d68dbcdd8a743540ac6953950
parentddde26ee45d4272b3c0709ab3a644dfe83c3a16d (diff)
downloadandroid_external_ant-wireless_ant_native-4b5bfd9046bfa0796cf2dac6c1063cb3fa2540cf.tar.gz
android_external_ant-wireless_ant_native-4b5bfd9046bfa0796cf2dac6c1063cb3fa2540cf.tar.bz2
android_external_ant-wireless_ant_native-4b5bfd9046bfa0796cf2dac6c1063cb3fa2540cf.zip
Fixed typo bug
-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