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 7ee3783 commit 6328124Copy full SHA for 6328124
lib/usb.ts
@@ -488,7 +488,7 @@ class MicrobitWebUSBConnectionImpl
488
this.startSerialInternal();
489
}
490
// Allows for reinstating serial after flashing.
491
- this.addedListeners.serialdata = 1;
+ this.addedListeners.serialdata++;
492
break;
493
494
@@ -498,7 +498,7 @@ class MicrobitWebUSBConnectionImpl
498
switch (type as keyof SerialConnectionEventMap) {
499
case "serialdata": {
500
this.stopSerialInternal();
501
- this.addedListeners.serialdata = 0;
+ this.addedListeners.serialdata--;
502
503
504
0 commit comments