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 @@ -235,14 +235,15 @@ esp_err_t simple_ble_start(simple_ble_cfg_t *cfg)
235
235
return ret ;
236
236
}
237
237
238
- #ifdef CONFIG_BTDM_CTRL_MODE_BTDM
239
- ret = esp_bt_controller_enable (ESP_BT_MODE_BTDM );
240
- #elif defined CONFIG_BTDM_CTRL_MODE_BLE_ONLY || CONFIG_BT_CTRL_MODE_EFF
241
- ret = esp_bt_controller_enable (ESP_BT_MODE_BLE );
242
- #else
238
+ #ifdef CONFIG_BTDM_CTRL_MODE_BR_EDR_ONLY
243
239
ESP_LOGE (TAG , "Configuration mismatch. Select BLE Only or BTDM mode from menuconfig" );
244
240
return ESP_FAIL ;
241
+ #elif CONFIG_BTDM_CTRL_MODE_BTDM
242
+ ret = esp_bt_controller_enable (ESP_BT_MODE_BTDM );
243
+ #else //For all other chips supporting BLE Only
244
+ ret = esp_bt_controller_enable (ESP_BT_MODE_BLE );
245
245
#endif
246
+
246
247
if (ret ) {
247
248
ESP_LOGE (TAG , "%s enable controller failed %d" , __func__ , ret );
248
249
return ret ;
You can’t perform that action at this time.
0 commit comments