Skip to content

Commit

Permalink
clear readers before clearing rest of buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
jwunderl committed Aug 28, 2024
1 parent 9e79ea6 commit 1ad36fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/flash.ts
Original file line number Diff line number Diff line change
Expand Up @@ -406,8 +406,8 @@ class DAPWrapper implements pxt.packetio.PacketIOWrapper {
await this.io.reconnectAsync();
}

await this.clearCommandsAsync()
await this.stopReadersAsync();
await this.clearCommandsAsync()
await this.cortexM.init();
await this.cortexM.reset(true);
await this.checkStateAsync();
Expand Down

0 comments on commit 1ad36fd

Please sign in to comment.