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