Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 741a652e authored by En-Shuo Hsu's avatar En-Shuo Hsu
Browse files

floss: Trigger connect for HFP

This fixes the issue that HFP only device doesn't connect with audio.

Bug: 241816822
Tag: #floss
Test: Connect HM1000 and verify playback and record
Change-Id: Iec4599fc5481d42e719a345c9e3588bcd56ec6d3
parent d56abbc7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1471,7 +1471,7 @@ impl IBluetooth for Bluetooth {
                                self.hh.as_ref().unwrap().connect(&mut addr.unwrap());
                            }

                            Profile::A2dpSink | Profile::A2dpSource => {
                            Profile::A2dpSink | Profile::A2dpSource | Profile::Hfp => {
                                let txl = self.tx.clone();
                                let address = device.address.clone();
                                topstack::get_runtime().spawn(async move {