From 2e2471c128700e6f45ae16460e81dfede389f300 Mon Sep 17 00:00:00 2001 From: Dreaded_X Date: Wed, 25 May 2022 04:48:34 +0200 Subject: [PATCH] Fixed: Not set to discoverable if there is no last device --- main/src/a2dp.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main/src/a2dp.cpp b/main/src/a2dp.cpp index e4c58ba..b1d3629 100644 --- a/main/src/a2dp.cpp +++ b/main/src/a2dp.cpp @@ -161,6 +161,8 @@ void a2dp::connect_to_last() { if (esp_a2d_sink_connect(last_connection) == ESP_FAIL) { ESP_LOGE(A2DP_TAG, "Failed connecting to device!"); } + } else { + bluetooth::set_scan_mode(true); } }