Browse Source

Added eraseConfig option from terminal

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

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

@ -141,6 +141,13 @@ void settingsSetup() {
ESP.restart(); ESP.restart();
}); });
Embedis::command( F("ERASE.CONFIG"), [](Embedis* e) {
e->response(Embedis::OK);
customReset(CUSTOM_RESET_TERMINAL);
ESP.eraseConfig();
*((int*) 0) = 0; // see https://github.com/esp8266/Arduino/issues/1494
});
#if NOFUSS_SUPPORT #if NOFUSS_SUPPORT
Embedis::command( F("NOFUSS"), [](Embedis* e) { Embedis::command( F("NOFUSS"), [](Embedis* e) {
e->response(Embedis::OK); e->response(Embedis::OK);


Loading…
Cancel
Save