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:
parent
7575fa0ce8
commit
684a9312e6
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue