diff --git a/port/esp32/components/btstack/include/btstack_config.h b/port/esp32/components/btstack/include/btstack_config.h index 7cf89a64b..1ba92385d 100644 --- a/port/esp32/components/btstack/include/btstack_config.h +++ b/port/esp32/components/btstack/include/btstack_config.h @@ -21,6 +21,7 @@ #define ENABLE_LE_SECURE_CONNECTIONS // ESP32 supports ECDH HCI Commands, but micro-ecc lib is already provided anyway #define ENABLE_MICRO_ECC_FOR_LE_SECURE_CONNECTIONS +#define ENABLE_SCO_OVER_HCI #define ENABLE_LOG_ERROR #define ENABLE_LOG_INFO // #define ENABLE_LOG_DEBUG diff --git a/port/esp32/components/btstack/main.c b/port/esp32/components/btstack/main.c index 4edd4b482..8d128295c 100644 --- a/port/esp32/components/btstack/main.c +++ b/port/esp32/components/btstack/main.c @@ -245,6 +245,11 @@ static int transport_open(void){ return -1; } +#ifdef ENABLE_SCO_OVER_HCI + ret = esp_bredr_sco_datapath_set(ESP_SCO_DATA_PATH_HCI); + log_info("transport: configure SCO over HCI, result 0x%04x", ret); +#endif + return 0; }