diff --git a/examples/espidf-hello-world/src/main.c b/examples/espidf-hello-world/src/main.c index 0b37e55..0e87252 100644 --- a/examples/espidf-hello-world/src/main.c +++ b/examples/espidf-hello-world/src/main.c @@ -21,12 +21,11 @@ void hello_task(void *pvParameter) } printf("Restarting now.\n"); fflush(stdout); - system_restart(); + esp_restart(); } void app_main() { nvs_flash_init(); - system_init(); xTaskCreate(&hello_task, "hello_task", 2048, NULL, 5, NULL); -} \ No newline at end of file +}