rcommand.cpp: delay before restart

This commit is contained in:
Klaus K Wilting committed 2018-11-10 18:32:16 +01:00
1 parent 8d2aeaca9f
commit 96783826d8
2 files changed
+5 -2

No files matched your search

+3
View File
@@ -8,7 +8,10 @@ static const char TAG[] = "main";
// helper function
void do_reset() {
ESP_LOGI(TAG, "Remote command: restart device");
if (irqHandlerTask != NULL)
vTaskDelete(irqHandlerTask);
LMIC_shutdown();
vTaskDelay(3000 / portTICK_PERIOD_MS);
esp_restart();
}