Explorar o código

bugfix: fix deepsleep saradc leakage

wuzhenghui %!s(int64=2) %!d(string=hai) anos
pai
achega
bd80be3b83
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      components/esp_hw_support/sleep_modes.c

+ 2 - 0
components/esp_hw_support/sleep_modes.c

@@ -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();
     }
 }