Skip to content

Commit

Permalink
Expose serial number for use in exclusion filters (#29)
Browse files Browse the repository at this point in the history
We decided to expose the device as it's a USB-specific class.
  • Loading branch information
microbit-robert authored Sep 11, 2024
1 parent db3a7e5 commit 66b4d89
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/usb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,10 @@ export class MicrobitWebUSBConnection
return this.connection?.deviceId;
}

getDevice(): USBDevice | undefined {
return this.device;
}

getBoardVersion(): BoardVersion | undefined {
return this.connection?.boardSerialInfo?.id.toBoardVersion();
}
Expand Down

0 comments on commit 66b4d89

Please sign in to comment.