We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34b4ecc commit 207b988Copy full SHA for 207b988
src/transport/cmsis_dap.ts
@@ -165,12 +165,7 @@ export class CMSISDAP {
165
private async send(command: number[]) {
166
const array = Uint8Array.from(command);
167
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
- });
+ const response = await this.hid.read();
+ return new Uint8Array(response.buffer);
175
}
176
0 commit comments