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

src/utility/HCIVirtualTransport.cpp

Lines changed: 4 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy