project/weight.c
/**
 * Cycles through all existing users and guest.
 */
Cycles through all existing users and guest.
Cycles through all existing users and guest .
void changeUser (void)
{
  if (millis() - lastTime > DEBOUNCE_TIME)
  {
    if (!users[++currentUser].name)
    {
      currentUser = -1;
    }
    displayCurrentUser();
  }
  lastTime = millis();
}
void changeUser ( void ) { if ( millis ( ) - lastTime > DEBOUNCE_TIME ) { if ( ! users [ ++ currentUser ] . name ) { currentUser = -1 ; } displayCurrentUser ( ) ; } lastTime = millis ( ) ; }
Cycles through all existing users and guest.
Cycles through all existing users and guest .
//printf("-----changeUser()-----\n"); // Debounce