Skip to content

Commit

Permalink
Merge branch 'bugfix/fix_spp_acceptor_example' into 'master'
Browse files Browse the repository at this point in the history
Fix(bt/bluedroid): Fix the mistaken deletion of bluedriod enable in bt_spp_acceptor example

See merge request espressif/esp-idf!26052
  • Loading branch information
wmy-espressif committed Sep 25, 2023
2 parents 47649d5 + e271e27 commit f0b4a69
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 f0b4a69

Please sign in to comment.