Skip to content

Commit ab1ea93

Browse files
authored
Merge pull request #389 from pennam/new-esp
ESP32-C2, ESP32-C6 and ESP32-H2 targets
2 parents c91c02c + e9f16eb commit ab1ea93

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/compile-examples.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -83,17 +83,17 @@ jobs:
8383

8484
build-for-esp32:
8585
runs-on: ubuntu-latest
86-
86+
8787
strategy:
8888
matrix:
8989
fqbn:
9090
- esp32:esp32:esp32
9191
- esp32:esp32:esp32s3
9292
- esp32:esp32:esp32c3
93-
# future bluetooth chips
93+
- esp32:esp32:esp32c6
94+
- esp32:esp32:esp32h2
95+
# Not supported out of the box by ESP32 Arduino core
9496
#- esp32:esp32:esp32c2
95-
#- esp32:esp32:esp32c6
96-
#- esp32:esp32:esp32h2
9797

9898
steps:
9999
- uses: actions/checkout@v4

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)