esp32: fix regression introduced in automatic light sleep pm

Closes: https://github.com/espressif/esp-idf/issues/2459

Signed-off-by: Mahavir Jain <mahavir@espressif.com>
This commit is contained in:
Mahavir Jain
2018-09-25 22:40:32 +05:30
parent 46ad2c6ad0
commit b5c321d981
3 changed files with 28 additions and 10 deletions

View File

@@ -60,9 +60,7 @@ void esp_vApplicationIdleHook()
esp_pm_impl_idle_hook();
#endif
#ifndef CONFIG_FREERTOS_USE_TICKLESS_IDLE
asm("waiti 0");
#endif
esp_pm_impl_waiti();
}
esp_err_t esp_register_freertos_idle_hook_for_cpu(esp_freertos_idle_cb_t new_idle_cb, UBaseType_t cpuid)