Skip to content

Commit

Permalink
fix build for ESP32-C2, ESP32-C6 and ESP32-H2 targets with Arduino-ES…
Browse files Browse the repository at this point in the history
…P32 Core 3.0.x
  • Loading branch information
lyusupov authored Aug 8, 2024
1 parent 29bef40 commit cc9723e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/utility/HCIVirtualTransport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ int HCIVirtualTransportClass::begin()
#if CONFIG_IDF_TARGET_ESP32
bt_cfg.mode = ESP_BT_MODE_BLE; //original esp32 chip
#else
#if !(CONFIG_IDF_TARGET_ESP32C2 || CONFIG_IDF_TARGET_ESP32C6 || CONFIG_IDF_TARGET_ESP32H2)
bt_cfg.bluetooth_mode = ESP_BT_MODE_BLE; //different api for newer models
#endif
#endif

esp_bt_controller_mem_release(ESP_BT_MODE_CLASSIC_BT);
Expand Down

0 comments on commit cc9723e

Please sign in to comment.