File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
components/protocomm/src/simple_ble Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -241,14 +241,15 @@ esp_err_t simple_ble_start(simple_ble_cfg_t *cfg)
241241 return ret ;
242242 }
243243
244- #ifdef CONFIG_BTDM_CTRL_MODE_BTDM
245- ret = esp_bt_controller_enable (ESP_BT_MODE_BTDM );
246- #elif defined CONFIG_BTDM_CTRL_MODE_BLE_ONLY || CONFIG_BT_CTRL_MODE_EFF
247- ret = esp_bt_controller_enable (ESP_BT_MODE_BLE );
248- #else
244+ #ifdef CONFIG_BTDM_CTRL_MODE_BR_EDR_ONLY
249245 ESP_LOGE (TAG , "Configuration mismatch. Select BLE Only or BTDM mode from menuconfig" );
250246 return ESP_FAIL ;
247+ #elif CONFIG_BTDM_CTRL_MODE_BTDM
248+ ret = esp_bt_controller_enable (ESP_BT_MODE_BTDM );
249+ #else //For all other chips supporting BLE Only
250+ ret = esp_bt_controller_enable (ESP_BT_MODE_BLE );
251251#endif
252+
252253 if (ret ) {
253254 ESP_LOGE (TAG , "%s enable controller failed %d" , __func__ , ret );
254255 return ret ;
You can’t perform that action at this time.
0 commit comments