Skip to content

Commit

Permalink
Add uBit namePrefix filter (#35)
Browse files Browse the repository at this point in the history
Using the microbit-pxt-blehid extension can result in "uBit" as the micro:bit name prefix
  • Loading branch information
microbit-robert authored Oct 18, 2024
1 parent e3c3100 commit be721e6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/bluetooth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,12 @@ export class MicrobitWebBluetoothConnection
? `BBC micro:bit [${this.nameFilter}]`
: "BBC micro:bit",
},
{
// See https://github.com/bsiever/microbit-pxt-blehid/issues/31
namePrefix: this.nameFilter
? `uBit [${this.nameFilter}]`
: "uBit",
},
],
optionalServices: [
profile.accelerometer.id,
Expand Down

0 comments on commit be721e6

Please sign in to comment.