We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d2c7b8 commit 5e18606Copy full SHA for 5e18606
lib/usb.ts
@@ -161,8 +161,7 @@ class MicrobitWebUSBConnectionImpl
161
if (!this.unloading && this.status === ConnectionStatus.CONNECTED) {
162
if (!this.flashing) {
163
this.log("Pausing connection for hidden tab");
164
- // Pass PAUSED as the final status to transition directly without
165
- // firing DISCONNECTED first.
+ // Transition to PAUSED not DISCONNECTED
166
this.disconnect(false, ConnectionStatus.PAUSED);
167
} else {
168
this.log("Scheduling disconnect of hidden tab for after flash");
0 commit comments