Skip to content

Commit 31e2b4c

Browse files
Incorporate review feedback
Co-authored-by: Rob Moran <rob.moran@arm.com>
1 parent 495e796 commit 31e2b4c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/proxy/cmsis-dap.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,7 @@ export class CmsisDAP extends EventEmitter implements Proxy {
256256
* @param sequence The sequence to send
257257
* @returns Promise
258258
*/
259-
public async swjSequence(sequence: BufferSource, bitLength?: number): Promise<void> {
260-
bitLength = bitLength || sequence.byteLength * 8;
259+
public async swjSequence(sequence: BufferSource, bitLength: number = sequence.byteLength * 8): Promise<void> {
261260
const data = this.bufferSourceToUint8Array(bitLength, sequence);
262261

263262
try {

0 commit comments

Comments
 (0)