Skip to content

Commit

Permalink
Branch with no bluetooth name filter for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
microbit-robert committed Oct 16, 2024
1 parent 66b4d89 commit d485ada
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions lib/bluetooth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,13 +189,7 @@ export class MicrobitWebBluetoothConnection
// TODO: give control over this to the caller
const result = await Promise.race([
navigator.bluetooth.requestDevice({
filters: [
{
namePrefix: this.nameFilter
? `BBC micro:bit [${this.nameFilter}]`
: "BBC micro:bit",
},
],
filters: [],
optionalServices: [
profile.accelerometer.id,
profile.button.id,
Expand Down

0 comments on commit d485ada

Please sign in to comment.