Fix ESP32-P4 compile when using Arduino as an ESP-IDF component

This commit is contained in:
iranl 2025-03-02 21:46:34 +01:00 committed by GitHub
parent 88c5d0c7b7
commit 148087c508
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -844,7 +844,7 @@ bool NimBLEDevice::init(const std::string& deviceName) {
if (!m_initialized) {
# ifdef ESP_PLATFORM
# ifdef CONFIG_ENABLE_ARDUINO_DEPENDS
# if defined(CONFIG_ENABLE_ARDUINO_DEPENDS) && SOC_BT_SUPPORTED
// make sure the linker includes esp32-hal-bt.c so Arduino init doesn't release BLE memory.
btStarted();
# endif