fix(bt/bluedroid): Fix the mistaken deletion of bluedriod enable in bt_spp_acceptor example

This commit is contained in:
liqigan
2023-09-19 19:55:12 +08:00
committed by BOT
parent a583475dfe
commit e271e27bd0

View File

@@ -232,6 +232,11 @@ void app_main(void)
return;
}
if ((ret = esp_bluedroid_enable()) != ESP_OK) {
ESP_LOGE(SPP_TAG, "%s enable bluedroid failed: %s", __func__, esp_err_to_name(ret));
return;
}
if ((ret = esp_bt_gap_register_callback(esp_bt_gap_cb)) != ESP_OK) {
ESP_LOGE(SPP_TAG, "%s gap register failed: %s", __func__, esp_err_to_name(ret));
return;