From 2d14edc9ce1c36e418df3ced923b49e34a3c4216 Mon Sep 17 00:00:00 2001 From: Alexandre Macabies Date: Sun, 5 Nov 2023 00:03:51 +0100 Subject: [PATCH] Attempt to fix new Chrome filter behavior. --- src/Ember.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Ember.ts b/src/Ember.ts index 39238c7..48d8f64 100644 --- a/src/Ember.ts +++ b/src/Ember.ts @@ -133,9 +133,9 @@ export default class Ember { this._device = await navigator.bluetooth.requestDevice({ filters: [{ name: btName, - services: [Uuid.descriptorService], + // services: [Uuid.descriptorService], }], - optionalServices: [Uuid.emberService], + optionalServices: [Uuid.descriptorService, Uuid.emberService], }) if (!this._device) throw new Error("Device selection cancelled") this._initialize()