Skip to content

Commit 11dab88

Browse files
committed
bluetooth: start TCP listening after WifiConnectStatus
Two benefits: - TCP connection timeout counter starts later - can bail out on WifiConnectStatus without unnecessary starting USB gadget
1 parent 15a4c9e commit 11dab88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bluetooth.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,9 +329,9 @@ pub async fn bluetooth_setup_connection(
329329
info.set_security_mode(SecurityMode::WPA2_PERSONAL);
330330
info.set_access_point_type(AccessPointType::DYNAMIC);
331331
send_message(&mut stream, MessageId::WifiInfoResponse, info).await?;
332-
tcp_start.notify_one();
333332
read_message(&mut stream, MessageId::WifiStartResponse).await?;
334333
read_message(&mut stream, MessageId::WifiConnectStatus).await?;
334+
tcp_start.notify_one();
335335
let _ = stream.shutdown().await?;
336336

337337
info!("{} 🚀 Bluetooth launch sequence completed", NAME);

0 commit comments

Comments
 (0)