Skip to content

Commit 101a281

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 61c2fca commit 101a281

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1317,9 +1317,9 @@ protected void discardBufferBytesToNextPacket(){
13171317
consolePrintLn("Throw Bytes " + UtilShimmer.bytesToHexStringWithSpacesFormatted(Arrays.copyOfRange(bTemp, 0, offset)));
13181318
}
13191319

1320-
private static int findOffsetOfNextZeroOrFF(byte[] a) {
1321-
for (int i = 1; i < a.length; i++) {
1322-
byte b = a[i];
1320+
private static int findOffsetOfNextZeroOrFF(byte[] buffer) {
1321+
for (int i = 1; i < buffer.length; i++) {
1322+
byte b = buffer[i];
13231323
if (b == 0 || b == (byte) 0xFF)
13241324
return i;
13251325
}

0 commit comments

Comments
 (0)