Skip to content

Commit

Permalink
Fix code running blocking
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin committed Jul 27, 2023
1 parent fd3f092 commit 5e3432f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/winrtble/ble/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ impl BLEDevice {
service: &GattDeviceService,
) -> Result<Vec<GattCharacteristic>> {
let async_result = service
.GetCharacteristicsWithCacheModeAsync(BluetoothCacheMode::Uncached)?
.GetCharacteristicsAsync()?
.await?;
let status = async_result.Status();
if status == Ok(GattCommunicationStatus::Success) {
Expand Down

0 comments on commit 5e3432f

Please sign in to comment.