Skip to content

Commit c9f82a3

Browse files
author
benjamin
committed
Fix code running blocking on windows platform
1 parent fd3f092 commit c9f82a3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/winrtble/ble/device.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,7 @@ impl BLEDevice {
9595
pub async fn get_characteristics(
9696
service: &GattDeviceService,
9797
) -> Result<Vec<GattCharacteristic>> {
98-
let async_result = service
99-
.GetCharacteristicsWithCacheModeAsync(BluetoothCacheMode::Uncached)?
100-
.await?;
98+
let async_result = service.GetCharacteristicsAsync()?.await?;
10199
let status = async_result.Status();
102100
if status == Ok(GattCommunicationStatus::Success) {
103101
let results = async_result.Characteristics()?;

0 commit comments

Comments
 (0)