fix ble compilation error

This commit is contained in:
cjin
2022-09-26 15:18:54 +08:00
parent 2a20a3c33f
commit 9d7a7001ac

View File

@@ -561,14 +561,13 @@ void controller_sleep_deinit(void)
/*lock should release first and then delete*/ /*lock should release first and then delete*/
if (s_pm_lock_acquired) { if (s_pm_lock_acquired) {
if(s_light_sleep_pm_lock != NULL) if (s_light_sleep_pm_lock != NULL) {
esp_pm_lock_release(s_light_sleep_pm_lock); esp_pm_lock_release(s_light_sleep_pm_lock);
} }
if(s_pm_lock != NULL) { if (s_pm_lock != NULL) {
esp_pm_lock_release(s_pm_lock); esp_pm_lock_release(s_pm_lock);
} }
s_pm_lock_acquired = false;
} }
if (!s_btdm_allow_light_sleep) { if (!s_btdm_allow_light_sleep) {