Fixed: Not set to discoverable if there is no last device

This commit is contained in:
Dreaded_X 2022-05-25 04:48:34 +02:00
parent 3b3c54af0b
commit 2e2471c128
Signed by: Dreaded_X
GPG Key ID: 76BDEC4E165D8AD9

View File

@ -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);
}
}