Modified views to add the view count info

This commit is contained in:
anschrammh 2019-03-16 19:47:43 +01:00
parent a4e582c008
commit dafc690ef7
2 changed files with 2 additions and 1 deletions

View File

@ -14,7 +14,7 @@ boolean view_1(Adafruit_SSD1306 &display, void *pData)
sprintf(power_str,"BATT(%u%%)", p->powerInfo.level);
}
sprintf(time_str,"RTC:time--> %d:%d:%d\ndate--> %d/%d/%d\nFree RAM : %d\nSdCard : %.2fGB\nPower : %s\n",p->dateTime.hour(), p->dateTime.minute(), p->dateTime.second(), p->dateTime.day(), p->dateTime.month(), p->dateTime.year(),ESP.getFreeHeap(),p->sdCardSize,power_str);
sprintf(time_str,"RTC:time--> %d:%d:%d\ndate--> %d/%d/%d\nFree RAM : %d\nSdCard : %.2fGB\nPower : %s\nViews : %u\n",p->dateTime.hour(), p->dateTime.minute(), p->dateTime.second(), p->dateTime.day(), p->dateTime.month(), p->dateTime.year(),ESP.getFreeHeap(),p->sdCardSize,power_str, p->nbViews);
display.println(time_str);
display.setCursor(0,56);
display.println("GLOBAL INFO");

View File

@ -8,6 +8,7 @@ typedef struct view1Packet
DateTime dateTime;
float sdCardSize;
PowerInfo powerInfo;
unsigned char nbViews;
} View1Packet;
//Global info