From b9442c0eaba125e98ebabe95f1d14f3bed1ecf16 Mon Sep 17 00:00:00 2001 From: Robert Knight Date: Fri, 18 Oct 2024 08:59:50 +0100 Subject: [PATCH] Include device name in new filter, add comment --- lib/bluetooth.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/bluetooth.ts b/lib/bluetooth.ts index a3e3bb3..73df12a 100644 --- a/lib/bluetooth.ts +++ b/lib/bluetooth.ts @@ -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,