From 0f30c815542fe20ab8eae94df1c17036b0850d3c Mon Sep 17 00:00:00 2001 From: proddy Date: Sun, 12 Apr 2026 20:32:36 +0200 Subject: [PATCH] fix compile on linux/osx --- src/core/system.cpp | 2 ++ 1 file changed, 2 insertions(+) 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) {