Skip to content

Commit 30f29a9

Browse files
committed
Send information about data size.
1 parent 7e8399a commit 30f29a9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/serial/serial.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ export class Serial {
4848
let arrayData = [];
4949
if (data || data !== "") {
5050
arrayData = data.split("").map((e: any) => e.charCodeAt());
51+
arrayData.unshift(arrayData.length);
5152
}
5253
return await this.dap.writeSerial(arrayData);
5354
}

0 commit comments

Comments
 (0)