Skip to content

Commit

Permalink
fix(bt/bluedroid): Fix the mistaken deletion of bluedriod enable in b…
Browse files Browse the repository at this point in the history
…t_spp_acceptor example
  • Loading branch information
boblane1 authored and espressif-bot committed Sep 22, 2023
1 parent a583475 commit e271e27
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e271e27

Please sign in to comment.