Browse Source

Allow RESTART terminal command as well as RESET to reset the board

fastled
Xose Pérez 7 years ago
parent
commit
7489f7ae89
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      code/espurna/settings.ino

+ 6
- 0
code/espurna/settings.ino View File

@ -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);


Loading…
Cancel
Save