From cd5ce783ba5a113b6928f6e7dc3ba2717c380378 Mon Sep 17 00:00:00 2001 From: wu bobo Date: Sun, 20 Oct 2024 09:26:33 +0800 Subject: [PATCH] Supports Windows 10 versions before 2004 --- src/winrtble/ble/watcher.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/winrtble/ble/watcher.rs b/src/winrtble/ble/watcher.rs index fb9126a2..3edb0b44 100644 --- a/src/winrtble/ble/watcher.rs +++ b/src/winrtble/ble/watcher.rs @@ -51,7 +51,7 @@ impl BLEWatcher { self.watcher .SetScanningMode(BluetoothLEScanningMode::Active) .unwrap(); - self.watcher.SetAllowExtendedAdvertisements(true)?; + let _ = self.watcher.SetAllowExtendedAdvertisements(true); let handler: TypedEventHandler< BluetoothLEAdvertisementWatcher, BluetoothLEAdvertisementReceivedEventArgs,