From 4bf33d8249d7bd61d6c2cf6fa19cc2f9c266f944 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Mon, 18 Jul 2022 15:17:23 +0200 Subject: [PATCH] example/hfp_ag_demo: request master role on reconnect --- example/hfp_ag_demo.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/example/hfp_ag_demo.c b/example/hfp_ag_demo.c index 25ef987c5..384a9c351 100644 --- a/example/hfp_ag_demo.c +++ b/example/hfp_ag_demo.c @@ -718,6 +718,9 @@ int btstack_main(int argc, const char * argv[]){ sco_demo_init(); + // Request role change on reconnecting headset to always use them in slave mode + hci_set_master_slave_policy(0); + gap_set_local_name("HFP AG Demo 00:00:00:00:00:00"); gap_discoverable_control(1);