From be7a1b8c31bba3ff97f5dab011a3d27780d725ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Sat, 25 Nov 2017 22:04:14 +0100 Subject: [PATCH] Small changes --- code/espurna/settings.ino | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/code/espurna/settings.ino b/code/espurna/settings.ino index f704b2c2..4db31dbe 100644 --- a/code/espurna/settings.ino +++ b/code/espurna/settings.ino @@ -319,6 +319,15 @@ void settingsLoop() { #endif } +void saveSettings() { + #if not SETTINGS_AUTOSAVE + _settings_save = true; + #endif + //settingsDump(); +} + +// ----------------------------------------------------------------------------- + void moveSetting(const char * from, const char * to) { String value = getSetting(from); if (value.length() > 0) setSetting(to, value); @@ -362,10 +371,3 @@ bool hasSetting(const String& key) { bool hasSetting(const String& key, unsigned int index) { return getSetting(key, index, "").length() != 0; } - -void saveSettings() { - #if not SETTINGS_AUTOSAVE - _settings_save = true; - #endif - //settingsDump(); -}