File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -226,6 +226,14 @@ void ButtonCheckTask(void *e)
226226 // Allow system to return to lastSystemState
227227 break ;
228228
229+ case STATE_PROFILE_1:
230+ case STATE_PROFILE_2:
231+ case STATE_PROFILE_3:
232+ case STATE_PROFILE_4:
233+ // If the user presses the setup button during a profile change, do nothing
234+ // Allow system to return to lastSystemState
235+ break ;
236+
229237 case STATE_TEST:
230238 // Do nothing. User is releasing the setup button.
231239 break ;
@@ -261,6 +269,27 @@ void ButtonCheckTask(void *e)
261269 setupState = STATE_WIFI_CONFIG_NOT_STARTED;
262270 break ;
263271 case STATE_WIFI_CONFIG_NOT_STARTED:
272+ if (activeProfiles == 1 ) // If we have only one active profile, do not show any profiles
273+ setupState = STATE_MARK_EVENT;
274+ else
275+ setupState = STATE_PROFILE_1;
276+ break ;
277+ case STATE_PROFILE_1:
278+ setupState = STATE_PROFILE_2;
279+ break ;
280+ case STATE_PROFILE_2:
281+ if (activeProfiles == 2 )
282+ setupState = STATE_MARK_EVENT;
283+ else
284+ setupState = STATE_PROFILE_3;
285+ break ;
286+ case STATE_PROFILE_3:
287+ if (activeProfiles == 3 )
288+ setupState = STATE_MARK_EVENT;
289+ else
290+ setupState = STATE_PROFILE_4;
291+ break ;
292+ case STATE_PROFILE_4:
264293 setupState = STATE_MARK_EVENT;
265294 break ;
266295 default :
You can’t perform that action at this time.
0 commit comments