Skip to content

Commit be721e6

Browse files
Add uBit namePrefix filter (#35)
Using the microbit-pxt-blehid extension can result in "uBit" as the micro:bit name prefix
1 parent e3c3100 commit be721e6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/bluetooth.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,12 @@ export class MicrobitWebBluetoothConnection
195195
? `BBC micro:bit [${this.nameFilter}]`
196196
: "BBC micro:bit",
197197
},
198+
{
199+
// See https://github.com/bsiever/microbit-pxt-blehid/issues/31
200+
namePrefix: this.nameFilter
201+
? `uBit [${this.nameFilter}]`
202+
: "uBit",
203+
},
198204
],
199205
optionalServices: [
200206
profile.accelerometer.id,

0 commit comments

Comments
 (0)