diff --git a/components/esp_hw_support/port/esp32c3/rtc_sleep.c b/components/esp_hw_support/port/esp32c3/rtc_sleep.c index df80d6e2df..b985152ef8 100644 --- a/components/esp_hw_support/port/esp32c3/rtc_sleep.c +++ b/components/esp_hw_support/port/esp32c3/rtc_sleep.c @@ -87,7 +87,6 @@ void rtc_sleep_get_default_config(uint32_t sleep_flags, rtc_sleep_config_t *out_ assert(sleep_flags & RTC_SLEEP_PD_XTAL); bool eco2_workaround = false; #if CONFIG_ESP32C3_REV_MIN_FULL < 3 - if (!ESP_CHIP_REV_ABOVE(efuse_hal_chip_revision(), 3)) { eco2_workaround = true; /* workaround for deep sleep issue in high temp on ECO2 and below */ } diff --git a/components/esp_system/sleep_modes.c b/components/esp_system/sleep_modes.c index a55ff5efc8..a6325cbe54 100644 --- a/components/esp_system/sleep_modes.c +++ b/components/esp_system/sleep_modes.c @@ -180,7 +180,7 @@ static bool s_light_sleep_wakeup = false; static portMUX_TYPE spinlock_rtc_deep_sleep = portMUX_INITIALIZER_UNLOCKED; static const char *TAG = "sleep"; -static bool s_adc_tsen_enabled = false; +static RTC_FAST_ATTR bool s_adc_tsen_enabled = false; //in this mode, 2uA is saved, but RTC memory can't use at high temperature, and RTCIO can't be used as INPUT. static bool s_ultra_low_enabled = false; @@ -1536,7 +1536,7 @@ void esp_deep_sleep_disable_rom_logging(void) esp_rom_disable_logging(); } -void rtc_sleep_enable_adc_tesn_monitor(bool enable) +void esp_sleep_enable_adc_tsens_monitor(bool enable) { s_adc_tsen_enabled = enable; }