Skip to content

Commit 83533b8

Browse files
fix: don't start serial when flashing
Otherwise it would interfere with the flashing process
1 parent cd035d9 commit 83533b8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/usb.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,9 @@ class MicrobitWebUSBConnectionImpl
481481
protected eventActivated(type: string): void {
482482
switch (type as keyof SerialConnectionEventMap) {
483483
case "serialdata": {
484-
this.startSerialInternal();
484+
if (!this.flashing) {
485+
this.startSerialInternal();
486+
}
485487
break;
486488
}
487489
}

0 commit comments

Comments
 (0)