From 75cf573637ecaf734315a2ff8f8fde5c2d80907a Mon Sep 17 00:00:00 2001 From: Li Shuai Date: Sun, 7 Apr 2024 17:39:48 +0800 Subject: [PATCH] fix(esp_hw_support): fix some errors with sleep's power domain management --- components/esp_hw_support/sleep_clock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/esp_hw_support/sleep_clock.c b/components/esp_hw_support/sleep_clock.c index 0ea9345f01..297d8f7083 100644 --- a/components/esp_hw_support/sleep_clock.c +++ b/components/esp_hw_support/sleep_clock.c @@ -30,11 +30,11 @@ bool clock_domain_pd_allowed(void) uint32_t mask = 0; if (inited_modules & sys_clk_dep_modules) { - mask |= SLEEP_RETENTION_MODULE_CLOCK_SYSTEM; + mask |= BIT(SLEEP_RETENTION_MODULE_CLOCK_SYSTEM); } if (inited_modules & modem_clk_dep_modules) { #if SOC_WIFI_SUPPORTED || SOC_BT_SUPPORTED || SOC_IEEE802154_SUPPORTED - mask |= SLEEP_RETENTION_MODULE_CLOCK_MODEM; + mask |= BIT(SLEEP_RETENTION_MODULE_CLOCK_MODEM); #endif } return ((inited_modules & mask) == (created_modules & mask));