@@ -2183,7 +2183,7 @@ void buttonCheckTask(void *e)
21832183 else if ((systemState == STATE_BASE_NOT_STARTED) && (firstRoverStart == true ) &&
21842184 (buttonPressedFor (500 ) == true ))
21852185 {
2186- lastSetupMenuChange = millis (); // Prevent a timeout during state change
2186+ lastSetupMenuChange. setTimerToMillis (); // Prevent a timeout during state change
21872187 forceSystemStateUpdate = true ;
21882188 requestChangeState (STATE_TEST);
21892189 }
@@ -2216,7 +2216,7 @@ void buttonCheckTask(void *e)
22162216 case STATE_NTPSERVER_SYNC:
22172217 lastSystemState = systemState; // Remember this state to return if needed
22182218 requestChangeState (STATE_DISPLAY_SETUP);
2219- lastSetupMenuChange = millis ();
2219+ lastSetupMenuChange. setTimerToMillis ();
22202220 setupSelectedButton = 0 ; // Highlight the first button
22212221 showMenu = false ;
22222222 break ;
@@ -2225,7 +2225,7 @@ void buttonCheckTask(void *e)
22252225 // If we are displaying the setup menu, a single tap will cycle through possible system states
22262226 // Exit into new system state on double tap - see below
22272227 // Exit display setup into previous state after ~10s - see updateSystemState()
2228- lastSetupMenuChange = millis ();
2228+ lastSetupMenuChange. setTimerToMillis ();
22292229
22302230 forceDisplayUpdate = true ; // User is interacting so repaint display quickly
22312231
@@ -2262,7 +2262,7 @@ void buttonCheckTask(void *e)
22622262
22632263 case STATE_TESTING:
22642264 // If we are in testing, return to Base Not Started
2265- lastSetupMenuChange = millis (); // Prevent a timeout during state change
2265+ lastSetupMenuChange. setTimerToMillis (); // Prevent a timeout during state change
22662266 baseCasterDisableOverride (); // Leave Caster mode
22672267 requestChangeState (STATE_BASE_NOT_STARTED);
22682268 break ;
@@ -2287,7 +2287,7 @@ void buttonCheckTask(void *e)
22872287 // If we are displaying the setup menu, a single tap will cycle through possible system states - see
22882288 // above Exit into new system state on double tap Exit display setup into previous state after ~10s
22892289 // - see updateSystemState()
2290- lastSetupMenuChange = millis (); // Prevent a timeout during state change
2290+ lastSetupMenuChange. setTimerToMillis (); // Prevent a timeout during state change
22912291 uint8_t thisIsButton = 0 ;
22922292 for (auto it = setupButtons.begin (); it != setupButtons.end (); it = std::next (it))
22932293 {
0 commit comments