File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 * Receives client input
55 */
66
7+ // Runtime state private to this file - previously WLED_GLOBAL, a leftover from
8+ // when all state lived in one big extern block regardless of who used it.
9+ static byte presetCycMin = 1 ;
10+ static byte presetCycMax = 5 ;
11+
712// called upon POST settings form submit
813void handleSettingsSet (AsyncWebServerRequest *request, byte subPage)
914{
Original file line number Diff line number Diff line change @@ -716,8 +716,7 @@ WLED_GLOBAL byte improvError _INIT(0);
716716WLED_GLOBAL int16_t currentPlaylist _INIT (-1 );
717717// still used for "PL=~" HTTP API command
718718WLED_GLOBAL byte presetCycCurr _INIT (0 );
719- WLED_GLOBAL byte presetCycMin _INIT (1 );
720- WLED_GLOBAL byte presetCycMax _INIT (5 );
719+ // presetCycMin/presetCycMax are private to set.cpp - see there.
721720
722721// realtime
723722WLED_GLOBAL byte realtimeMode _INIT (REALTIME_MODE_INACTIVE );
You can’t perform that action at this time.
0 commit comments