@@ -116,7 +116,7 @@ pub async fn init(
116116 let handle_aa = session. register_profile ( profile) . await ?;
117117 info ! ( "{} 📱 AA Wireless Profile: registered" , NAME ) ;
118118
119- let mut handle_hsp = None ;
119+ let handle_hsp = None ;
120120 let mut task_hsp = None ;
121121 if !dongle_mode {
122122 // Headset profile
@@ -253,7 +253,6 @@ async fn read_message(
253253
254254impl Bluetooth {
255255 pub async fn start_ble ( & mut self , state : AppState , enable_btle : bool ) -> Result < ( ) > {
256- let mut success;
257256 // --- Start BLE GATT server first ---
258257 if enable_btle {
259258 match btle:: run_btle_server ( & self . adapter , state. clone ( ) ) . await {
@@ -263,7 +262,6 @@ impl Bluetooth {
263262 }
264263 Err ( e) => {
265264 error ! ( "{} 🥏 Failed to start BLE server: {}" , NAME , e) ;
266- success = false ;
267265 }
268266 }
269267 }
@@ -354,7 +352,6 @@ impl Bluetooth {
354352 "{} 🥏 BLE advertisement completely failed after retries" ,
355353 NAME
356354 ) ;
357- success = false ;
358355 }
359356 }
360357 }
@@ -367,7 +364,6 @@ impl Bluetooth {
367364 dongle_mode : bool ,
368365 connect : BluetoothAddressList ,
369366 bt_timeout : Duration ,
370- state : AppState ,
371367 stopped : bool ,
372368 ) -> Result < ( Address , Stream ) > {
373369 info ! ( "{} ⏳ Waiting for phone to connect via bluetooth..." , NAME ) ;
@@ -541,7 +537,6 @@ impl Bluetooth {
541537 wifi_config : WifiConfig ,
542538 tcp_start : Arc < Notify > ,
543539 bt_timeout : Duration ,
544- state : AppState ,
545540 stopped : bool ,
546541 ) -> Result < ( ) > {
547542 use WifiInfoResponse :: WifiInfoResponse ;
@@ -551,7 +546,7 @@ impl Bluetooth {
551546
552547 // Use the provided session and adapter instead of creating new ones
553548 let ( address, mut stream) = self
554- . get_aa_profile_connection ( dongle_mode, connect, bt_timeout, state , stopped)
549+ . get_aa_profile_connection ( dongle_mode, connect, bt_timeout, stopped)
555550 . await ?;
556551
557552 info ! ( "{} 📲 Sending parameters via bluetooth to phone..." , NAME ) ;
0 commit comments