     DisplayStateWrapper *displayState = display.getState();
     displayState->writeToRtc(1, sizeof(DisplayStateWrapper));
 
-    systemState.accumulatedSystemMillis = systemState.accumulatedSystemMillis + systemActive + sleepMillis;
     systemState.writeToRtc(0, sizeof(SystemState));
     
     ESP.deepSleep(sleepMillis * 1000);

    unsigned long sleepMillis = 1;
    if (systemSleepSeconds * 1000 > systemActive)
      sleepMillis = systemSleepSeconds * 1000 - systemActive;
    
    Serial.print("Sleeping ");
    if (shouldSleepNow && !sleepNow)
      Serial.print("in vain ");
    Serial.println(sleepMillis);

#include "Wave29Display.h"
Wave29Display display;

unsigned long systemSleepSeconds = 240; // including the awaked time
unsigned long systemAwakeSeconds = 14;

#include "TH.h"
#include "WeatherServer.h"
