   menuIndex++;
   isModified = false;
   state = MENU;
+  menuStartMillis = millis();
   if (menuIndex > MENU_MAX) {
     menuIndex = 0;
     state = TIME;

}

void tick(void* context) {
  readSelectButton();
  xButtons.check();
  yButtons.check();

  yButtons.add(downBtn);

  // Setup timer event intervals.
  // The tick event runs much more frequently, at about 50Hz, for low-latency when reading buttons.
  tickEvent = t.every(20, tick, (void*)0);
  // The main event runs about 3Hz to update the LEDs, piezo buzzer.
  mainEvent = t.every(333, update, (void*)0);
}

void loop() {
