Skip to content

Commit ffbe91e

Browse files
committed
bluetooh: fix logic error in cc6376e
1 parent 72865fa commit ffbe91e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bluetooth.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ async fn power_up_and_wait_for_connection(
135135
info!("{} 📱 AA Wireless Profile: registered", NAME);
136136

137137
let mut handle_hsp = None;
138-
if dongle_mode {
138+
if !dongle_mode {
139139
// Headset profile
140140
let profile = Profile {
141141
uuid: HSP_HS_UUID,
@@ -162,7 +162,7 @@ async fn power_up_and_wait_for_connection(
162162

163163
// try to connect to saved devices or provided one via command line
164164
let mut connect_task: Option<JoinHandle<Result<()>>> = None;
165-
if dongle_mode {
165+
if !dongle_mode {
166166
if let Some(address) = connect {
167167
let adapter_cloned = adapter.clone();
168168

0 commit comments

Comments
 (0)