Skip to content

Commit

Permalink
Fix off by 1 when receiving 2+ results
Browse files Browse the repository at this point in the history
  • Loading branch information
balloob committed Feb 4, 2022
1 parent 931bb71 commit 4245ae7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ble.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ export class ImprovBluetoothLE extends EventTarget {
valueBytes[i] = encodedResult.getUint8(valueOffset + i);
}
result.values.push(decoder.decode(valueBytes));
start += valueLength;
start += valueLength + 1; // +1 for length byte
}

this.RPCResult = result;
Expand Down

0 comments on commit 4245ae7

Please sign in to comment.