diff --git a/src/core/system.cpp b/src/core/system.cpp index 3ec492f93..3000b50f6 100644 --- a/src/core/system.cpp +++ b/src/core/system.cpp @@ -1649,6 +1649,7 @@ bool System::check_upgrade() { } // map each config filename to its human-readable section key +#ifndef EMSESP_STANDALONE static const std::pair SECTION_MAP[] = { {NETWORK_SETTINGS_FILE, "Network"}, {AP_SETTINGS_FILE, "AP"}, @@ -1661,6 +1662,7 @@ static const std::pair SECTION_MAP[] = { {EMSESP_CUSTOMENTITY_FILE, "Entities"}, {EMSESP_MODULES_FILE, "Modules"}, }; +#endif // convert a single config file into a section of the output json object void System::exportSettings(const std::string & type, const char * filename, JsonObject output) {