bugfix: fix deepsleep saradc leakage

This commit is contained in:
wuzhenghui 2023-03-30 11:35:05 +08:00
parent 6c5a7da77c
commit bd80be3b83

View File

@ -443,6 +443,8 @@ inline static void IRAM_ATTR misc_modules_sleep_prepare(bool deep_sleep)
#if REGI2C_ANA_CALI_PD_WORKAROUND
regi2c_analog_cali_reg_read();
#endif
}
if (!(deep_sleep && s_adc_tsen_enabled)){
sar_periph_ctrl_power_disable();
}
}