Merge pull request #312 from iranl/patch-3

Fix ESP32-P4 compile when using Arduino as an ESP-IDF component
This commit is contained in:
Ryan Powell 2025-03-10 18:30:44 -06:00 committed by GitHub
commit 723cdf0a66
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