Skip to content

Commit 831e332

Browse files
marknolanCopilot
andauthored
Update ShimmerDriver/src/main/java/com/shimmerresearch/bluetooth/ShimmerBluetooth.java
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 101a281 commit 831e332

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ShimmerDriver/src/main/java/com/shimmerresearch/bluetooth/ShimmerBluetooth.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1309,7 +1309,7 @@ protected void discardBufferBytesToNextPacket(){
13091309
offset = (offset == -1) ? 1 : offset;
13101310

13111311
mByteArrayOutputStream.reset();
1312-
mByteArrayOutputStream.write(bTemp, offset, bTemp.length-offset); //this will throw the first byte away
1312+
mByteArrayOutputStream.write(bTemp, offset, bTemp.length-offset); // discard first 'offset' bytes
13131313
if(mEnablePCTimeStamps) {
13141314
// Remove first `offset` elements from the original list (destructive, modifies same list)
13151315
mListofPCTimeStamps.subList(0, offset).clear();

0 commit comments

Comments
 (0)