fix(power_management): fix ci warning due to unused variable config

This commit is contained in:
Li Shuai
2025-03-10 20:03:35 +08:00
committed by BOT
parent 410fb091d9
commit 82ab6b8cf9

View File

@@ -374,10 +374,9 @@ static void IRAM_ATTR esp_pm_execute_exit_sleep_callbacks(int64_t sleep_time_us)
}
#endif
static esp_err_t esp_pm_sleep_configure(const void *vconfig)
static esp_err_t esp_pm_sleep_configure(const esp_pm_config_t *config)
{
esp_err_t err = ESP_OK;
const esp_pm_config_t* config = (const esp_pm_config_t*) vconfig;
#if ESP_SLEEP_POWER_DOWN_CPU && CONFIG_SOC_LIGHT_SLEEP_SUPPORTED
err = sleep_cpu_configure(config->light_sleep_enable);