]> granicus.if.org Git - esp-idf/commitdiff
component/bt: bugfix for mismatch of controller mode in sdkconfig.defaults and source...
authorwangmengyang <wangmengyang@espressif.com>
Tue, 11 Sep 2018 03:18:13 +0000 (11:18 +0800)
committerwangmengyang <wangmengyang@espressif.com>
Thu, 13 Sep 2018 09:46:00 +0000 (17:46 +0800)
examples/bluetooth/a2dp_source/main/main.c
examples/bluetooth/ble_hid_device_demo/main/ble_hidd_demo_main.c
examples/bluetooth/bt_discovery/main/bt_discovery.c

index 3a59d08ae165d3fafc11d5e568149997652d8c6f..ff1fcfdbb4c50d09d2ef6321214e2c7a9b937cb6 100644 (file)
@@ -113,7 +113,7 @@ void app_main()
         return;
     }
 
-    if (esp_bt_controller_enable(ESP_BT_MODE_BTDM) != ESP_OK) {
+    if (esp_bt_controller_enable(ESP_BT_MODE_CLASSIC_BT) != ESP_OK) {
         ESP_LOGE(BT_AV_TAG, "%s enable controller failed\n", __func__);
         return;
     }
index 3094f6bc7fe4a314fc8df1e8b5adc06332a3afe8..12c9483e3db03109fe7c7384dacd586dac464eba 100644 (file)
@@ -278,7 +278,7 @@ void app_main()
         return;
     }
 
-    ret = esp_bt_controller_enable(ESP_BT_MODE_BTDM);
+    ret = esp_bt_controller_enable(ESP_BT_MODE_BLE);
     if (ret) {
         ESP_LOGE(HID_DEMO_TAG, "%s enable controller failed\n", __func__);
         return;
index ef2b11ef53ccbec9fd63ffd4fb26239c84615257..20c072611aee70c2b25df9b802fd4d575918f7b8 100644 (file)
@@ -285,7 +285,7 @@ void app_main()
         return;
     }
 
-    if ((ret = esp_bt_controller_enable(ESP_BT_MODE_BTDM)) != ESP_OK) {
+    if ((ret = esp_bt_controller_enable(ESP_BT_MODE_CLASSIC_BT)) != ESP_OK) {
         ESP_LOGE(GAP_TAG, "%s enable controller failed: %s\n", __func__, esp_err_to_name(ret));
         return;
     }