8000 fix build for ESP32-C2, ESP32-C6 and ESP32-H2 targets with Arduino-ES… · arduino-libraries/ArduinoBLE@e1cbac4 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e1cbac4

Browse files
lyusupovpennam
authored andcommitted
fix build for ESP32-C2, ESP32-C6 and ESP32-H2 targets with Arduino-ESP32 Core 3.0.x
1 parent c91c02c commit e1cbac4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/utility/HCIVirtualTransport.cpp

Lines changed: 2 additions & 0 deletions
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)
0