Skip to content

Commit 9af9bea

Browse files
committed
Update HCIVirtualTransport.cpp
add ESP32-C3 support
1 parent b96bc7c commit 9af9bea

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: src/utility/HCIVirtualTransport.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,11 @@ int HCIVirtualTransportClass::begin()
8282
}
8383
ESP_ERROR_CHECK( ret );
8484
esp_bt_controller_config_t bt_cfg = BT_CONTROLLER_INIT_CONFIG_DEFAULT();
85+
#if CONFIG_IDF_TARGET_ESP32C3
86+
bt_cfg.bluetooth_mode = ESP_BT_MODE_BLE;
87+
#else
8588
bt_cfg.mode = ESP_BT_MODE_BLE;
89+
#endif
8690
ret = esp_bt_controller_mem_release(ESP_BT_MODE_CLASSIC_BT);
8791
if (ret) {
8892
return 0;

0 commit comments

Comments
 (0)