mirror of
https://github.com/badgeteam/mch2022-template-app.git
synced 2024-11-25 18:21:00 +00:00
18 lines
451 B
C
18 lines
451 B
C
#include <stdio.h>
|
|
#include <string.h>
|
|
#include <sdkconfig.h>
|
|
#include <esp_system.h>
|
|
#include <freertos/FreeRTOS.h>
|
|
#include <freertos/task.h>
|
|
#include "system_wrapper.h"
|
|
|
|
void restart() {
|
|
/*for (int i = 3; i >= 0; i--) {
|
|
printf("Restarting in %d seconds...\n", i);
|
|
vTaskDelay(1000 / portTICK_PERIOD_MS);
|
|
}
|
|
printf("Restarting now.\n");*/
|
|
vTaskDelay(1000 / portTICK_PERIOD_MS);
|
|
fflush(stdout);
|
|
esp_restart();
|
|
}
|