File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -295,7 +295,7 @@ void ButtonCheckTask(void *e)
295295 // If only one active profile do not show any profiles
296296 index = getProfileNumberFromUnit (0 );
297297 displayProfile = getProfileNumberFromUnit (1 );
298- setupState = (index >= MAX_PROFILE_COUNT ) ? STATE_MARK_EVENT : STATE_PROFILE;
298+ setupState = (index >= displayProfile ) ? STATE_MARK_EVENT : STATE_PROFILE;
299299 displayProfile = 0 ;
300300 break ;
301301 case STATE_PROFILE:
@@ -410,7 +410,7 @@ void ButtonCheckTask(void *e)
410410 // If only one active profile do not show any profiles
411411 index = getProfileNumberFromUnit (0 );
412412 displayProfile = getProfileNumberFromUnit (1 );
413- setupState = (index >= MAX_PROFILE_COUNT ) ? STATE_MARK_EVENT : STATE_PROFILE;
413+ setupState = (index >= displayProfile ) ? STATE_MARK_EVENT : STATE_PROFILE;
414414 displayProfile = 0 ;
415415 break ;
416416 case STATE_PROFILE:
You can’t perform that action at this time.
0 commit comments