refactoring

This commit is contained in:
Lubos Petrovic
2020-12-20 15:44:49 +01:00
parent d5fc88fb7b
commit e8b0b10be0
2 changed files with 12 additions and 11 deletions

View File

@@ -22,6 +22,15 @@ void Board320_240::initBoard() {
pinMode(pinButtonLeft, INPUT);
pinMode(pinButtonRight, INPUT);
// Init time library
struct timeval tv;
tv.tv_sec = 1589011873;
settimeofday(&tv, NULL);
struct tm now;
getLocalTime(&now, 0);
liveData->params.chargingStartTime = liveData->params.currentTime = mktime(&now);
// Init display
Serial.println("Init tft display");
tft.begin();