forked from espressif/esp-idf
fix(bt/bluedroid): Fix the mistaken deletion of bluedriod enable in bt_spp_acceptor example
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user