From f289710ccf6f4fa182fe5b56822c50ee43051583 Mon Sep 17 00:00:00 2001 From: cjin Date: Mon, 26 Sep 2022 15:18:54 +0800 Subject: [PATCH 1/2] fix ble compilation error --- components/bt/controller/esp32c2/bt.c | 1 - 1 file changed, 1 deletion(-) diff --git a/components/bt/controller/esp32c2/bt.c b/components/bt/controller/esp32c2/bt.c index 70867dc47a4..01a9154f0e3 100644 --- a/components/bt/controller/esp32c2/bt.c +++ b/components/bt/controller/esp32c2/bt.c @@ -568,7 +568,6 @@ void controller_sleep_deinit(void) if (s_pm_lock != NULL) { esp_pm_lock_release(s_pm_lock); } - s_pm_lock_acquired = false; } if (!s_btdm_allow_light_sleep) { From 0d113fb6095c496977b461f1da155d5cf3060b1b Mon Sep 17 00:00:00 2001 From: cjin Date: Mon, 26 Sep 2022 15:29:33 +0800 Subject: [PATCH 2/2] update controller lib for bugfix on light-sleep --- components/bt/controller/lib_esp32c2/esp32c2-bt-lib | 2 +- components/esp_rom/esp32c2/ld/esp32c2.rom.ld | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/components/bt/controller/lib_esp32c2/esp32c2-bt-lib b/components/bt/controller/lib_esp32c2/esp32c2-bt-lib index c039a68dcf4..64bf3942806 160000 --- a/components/bt/controller/lib_esp32c2/esp32c2-bt-lib +++ b/components/bt/controller/lib_esp32c2/esp32c2-bt-lib @@ -1 +1 @@ -Subproject commit c039a68dcf49082c37318568b2e147b61265e772 +Subproject commit 64bf3942806c2b3be17ef20fb7df6dc63ddf6340 diff --git a/components/esp_rom/esp32c2/ld/esp32c2.rom.ld b/components/esp_rom/esp32c2/ld/esp32c2.rom.ld index 6254205e5a9..b6dd1b211af 100644 --- a/components/esp_rom/esp32c2/ld/esp32c2.rom.ld +++ b/components/esp_rom/esp32c2/ld/esp32c2.rom.ld @@ -1224,6 +1224,7 @@ r_ble_lll_reset = 0x40001644; r_ble_lll_rfmgmt_controller_sleep_en = 0x40001648; r_ble_lll_rfmgmt_enable_now = 0x40001658; r_ble_lll_rfmgmt_is_enabled = 0x40001660; +r_ble_lll_rfmgmt_release = 0x40001664; r_ble_lll_rfmgmt_release_ev = 0x40001668; r_ble_lll_rfmgmt_scan_changed = 0x40001670; r_ble_lll_rfmgmt_sched_changed = 0x40001674;