Skip to content

Commit 5e3432f

Browse files
author
benjamin
committed
Fix code running blocking
1 parent fd3f092 commit 5e3432f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/winrtble/ble/device.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ impl BLEDevice {
9696
service: &GattDeviceService,
9797
) -> Result<Vec<GattCharacteristic>> {
9898
let async_result = service
99-
.GetCharacteristicsWithCacheModeAsync(BluetoothCacheMode::Uncached)?
99+
.GetCharacteristicsAsync()?
100100
.await?;
101101
let status = async_result.Status();
102102
if status == Ok(GattCommunicationStatus::Success) {

0 commit comments

Comments
 (0)