diff --git a/wled00/set.cpp b/wled00/set.cpp index dee8d00378..f693ad04cf 100644 --- a/wled00/set.cpp +++ b/wled00/set.cpp @@ -4,6 +4,11 @@ * Receives client input */ +// Runtime state private to this file - previously WLED_GLOBAL, a leftover from +// when all state lived in one big extern block regardless of who used it. +static byte presetCycMin = 1; +static byte presetCycMax = 5; + //called upon POST settings form submit void handleSettingsSet(AsyncWebServerRequest *request, byte subPage) { diff --git a/wled00/wled.h b/wled00/wled.h index 9bafb49196..daf62204cd 100644 --- a/wled00/wled.h +++ b/wled00/wled.h @@ -718,8 +718,7 @@ WLED_GLOBAL byte improvError _INIT(0); WLED_GLOBAL int16_t currentPlaylist _INIT(-1); //still used for "PL=~" HTTP API command WLED_GLOBAL byte presetCycCurr _INIT(0); -WLED_GLOBAL byte presetCycMin _INIT(1); -WLED_GLOBAL byte presetCycMax _INIT(5); +// presetCycMin/presetCycMax are private to set.cpp - see there. // realtime WLED_GLOBAL byte realtimeMode _INIT(REALTIME_MODE_INACTIVE);