From dbb1e99ebd357909693876c9204ff2620f6d3c7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Thu, 31 Aug 2017 11:45:03 +0200 Subject: [PATCH] Fix NoFUSS reference in settings.ino --- code/espurna/settings.ino | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/code/espurna/settings.ino b/code/espurna/settings.ino index 47d6bf3c..fd20b21a 100644 --- a/code/espurna/settings.ino +++ b/code/espurna/settings.ino @@ -99,6 +99,8 @@ void settingsSetup() { e->response(s); }, 0); + // ------------------------------------------------------------------------- + Embedis::command( F("RESET.WIFI"), [](Embedis* e) { wifiConfigure(); wifiDisconnect(); @@ -117,10 +119,12 @@ void settingsSetup() { ESP.restart(); }); - Embedis::command( F("NOFUSS"), [](Embedis* e) { - e->response(Embedis::OK); - nofussRun(); - }); + #if NOFUSS_SUPPORT + Embedis::command( F("NOFUSS"), [](Embedis* e) { + e->response(Embedis::OK); + nofussRun(); + }); + #endif Embedis::command( F("FACTORY.RESET"), [](Embedis* e) { settingsFactoryReset();