forked from espressif/esp-idf
fix(power_management): fix ci warning due to unused variable config
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user