Fixed: Not set to discoverable if there is no last device
This commit is contained in:
parent
3b3c54af0b
commit
2e2471c128
|
@ -161,6 +161,8 @@ void a2dp::connect_to_last() {
|
||||||
if (esp_a2d_sink_connect(last_connection) == ESP_FAIL) {
|
if (esp_a2d_sink_connect(last_connection) == ESP_FAIL) {
|
||||||
ESP_LOGE(A2DP_TAG, "Failed connecting to device!");
|
ESP_LOGE(A2DP_TAG, "Failed connecting to device!");
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
bluetooth::set_scan_mode(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user