Skip to content

Commit cc9723e

Browse files
authored
fix build for ESP32-C2, ESP32-C6 and ESP32-H2 targets with Arduino-ESP32 Core 3.0.x
1 parent 29bef40 commit cc9723e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/utility/HCIVirtualTransport.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ int HCIVirtualTransportClass::begin()
8080
#if CONFIG_IDF_TARGET_ESP32
8181
bt_cfg.mode = ESP_BT_MODE_BLE; //original esp32 chip
8282
#else
83+
#if !(CONFIG_IDF_TARGET_ESP32C2 || CONFIG_IDF_TARGET_ESP32C6 || CONFIG_IDF_TARGET_ESP32H2)
8384
bt_cfg.bluetooth_mode = ESP_BT_MODE_BLE; //different api for newer models
85+
#endif
8486
#endif
8587

8688
esp_bt_controller_mem_release(ESP_BT_MODE_CLASSIC_BT);

0 commit comments

Comments
 (0)