fix(bt): Compile error on ESP32-P4 (#11035)

* fix(bt): Fix compile error on ESP32-P4

* fix(bt): Fix compile error on ESP32-P4
This commit is contained in:
iranl 2025-03-05 11:45:11 +01:00 committed by GitHub
parent 7575fa0ce8
commit 684a9312e6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -25,7 +25,7 @@
#include "esp_ota_ops.h"
#endif //CONFIG_APP_ROLLBACK_ENABLE
#include "esp_private/startup_internal.h"
#ifdef CONFIG_BT_ENABLED
#if defined(CONFIG_BT_ENABLED) && SOC_BT_SUPPORTED
#include "esp_bt.h"
#endif //CONFIG_BT_ENABLED
#include <sys/time.h>
@ -305,7 +305,7 @@ void initArduino() {
if (err) {
log_e("Failed to initialize NVS! Error: %u", err);
}
#ifdef CONFIG_BT_ENABLED
#if defined(CONFIG_BT_ENABLED) && SOC_BT_SUPPORTED
if (!btInUse()) {
esp_bt_controller_mem_release(ESP_BT_MODE_BTDM);
}