Skip to content

Commit 1351d5f

Browse files
committed
fix: Build gatt transport on macOS.
1 parent c199d58 commit 1351d5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src-tauri/src/transport/gatt.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ pub async fn gatt_connect(
102102
}
103103

104104
#[cfg(target_os = "macos")]
105-
async fn check_connected(adapter: &Adapter, dev: &Device) -> bool {
106-
if let Some(()) = adapter.connect_device(&device).await {
105+
async fn check_connected(adapter: &Adapter, device: &Device) -> bool {
106+
if let Ok(()) = adapter.connect_device(&device).await {
107107
true
108108
} else {
109109
false

0 commit comments

Comments
 (0)