rcommand.cpp: delay before restart
This commit is contained in:
1 parent
8d2aeaca9f
commit
96783826d8
2 files changed
+5
-2
No files matched your search
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user