Skip to content

Commit 82ab6b8

Browse files
esp-lisespressif-bot
authored andcommitted
fix(power_management): fix ci warning due to unused variable config
1 parent 410fb09 commit 82ab6b8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

components/esp_pm/pm_impl.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -374,10 +374,9 @@ static void IRAM_ATTR esp_pm_execute_exit_sleep_callbacks(int64_t sleep_time_us)
374374
}
375375
#endif
376376

377-
static esp_err_t esp_pm_sleep_configure(const void *vconfig)
377+
static esp_err_t esp_pm_sleep_configure(const esp_pm_config_t *config)
378378
{
379379
esp_err_t err = ESP_OK;
380-
const esp_pm_config_t* config = (const esp_pm_config_t*) vconfig;
381380

382381
#if ESP_SLEEP_POWER_DOWN_CPU && CONFIG_SOC_LIGHT_SLEEP_SUPPORTED
383382
err = sleep_cpu_configure(config->light_sleep_enable);

0 commit comments

Comments
 (0)