From 7489f7ae8973d7bd28828f6abfe48c81af09e137 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Sun, 13 Aug 2017 16:00:42 +0200 Subject: [PATCH] Allow RESTART terminal command as well as RESET to reset the board --- code/espurna/settings.ino | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/espurna/settings.ino b/code/espurna/settings.ino index 0850a87f..69c148be 100644 --- a/code/espurna/settings.ino +++ b/code/espurna/settings.ino @@ -94,6 +94,12 @@ void settingsSetup() { e->response(Embedis::OK); }); + Embedis::command( F("RESTART"), [](Embedis* e) { + e->response(Embedis::OK); + customReset(CUSTOM_RESET_TERMINAL); + ESP.restart(); + }); + Embedis::command( F("RESET"), [](Embedis* e) { e->response(Embedis::OK); customReset(CUSTOM_RESET_TERMINAL);