  EEPROM.commit();
}

//screen functions
void timeScreen() {
  // time screen
  currentCPUtime = millis()/1000;
  if (currentCPUtime - timeTakenAt >= timeout) {

    if (WiFi.status() != WL_CONNECTED) {
      connectToWiFi();
    } else if (WiFi.status() == WL_CONNECTED) {
      setupLocalTime();
      firstScan = false; // this is where we start caring about the EEPROM to avoid pagefault