Skip to content

Commit 148087c

Browse files
authored
Fix ESP32-P4 compile when using Arduino as an ESP-IDF component
1 parent 88c5d0c commit 148087c

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)