Skip to content

Commit

Permalink
Include device name in new filter, add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
microbit-robert committed Oct 18, 2024
1 parent 38308fe commit b9442c0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/bluetooth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,12 @@ export class MicrobitWebBluetoothConnection
? `BBC micro:bit [${this.nameFilter}]`
: "BBC micro:bit",
},
{ namePrefix: "uBit" },
{
// 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 b9442c0

Please sign in to comment.