Skip to content

Commit 207b988

Browse files
committed
Remove timeout before writting and reading.
1 parent 34b4ecc commit 207b988

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/transport/cmsis_dap.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -165,12 +165,7 @@ export class CMSISDAP {
165165
private async send(command: number[]) {
166166
const array = Uint8Array.from(command);
167167
await this.hid.write(array.buffer);
168-
// wait 1 ms before reading data
169-
// const response = await this.hid.read();
170-
// return new Uint8Array(response.buffer);
171-
return this.delay(1).then(async () => {
172-
const response = await this.hid.read();
173-
return new Uint8Array(response.buffer);
174-
});
168+
const response = await this.hid.read();
169+
return new Uint8Array(response.buffer);
175170
}
176171
}

0 commit comments

Comments
 (0)