Skip to content

Commit 723cdf0

Browse files
authored
Merge pull request #312 from iranl/patch-3
Fix ESP32-P4 compile when using Arduino as an ESP-IDF component
2 parents 88c5d0c + 148087c commit 723cdf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NimBLEDevice.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,7 @@ bool NimBLEDevice::init(const std::string& deviceName) {
844844
if (!m_initialized) {
845845
# ifdef ESP_PLATFORM
846846

847-
# ifdef CONFIG_ENABLE_ARDUINO_DEPENDS
847+
# if defined(CONFIG_ENABLE_ARDUINO_DEPENDS) && SOC_BT_SUPPORTED
848848
// make sure the linker includes esp32-hal-bt.c so Arduino init doesn't release BLE memory.
849849
btStarted();
850850
# endif

0 commit comments

Comments
 (0)