Full refresh a display every 30 minutes

This commit is contained in:
Djuri Baars 2023-09-09 20:45:05 +02:00
parent f6796fa448
commit 922cb5ae0a

View file

@ -319,7 +319,9 @@ void updateDisplay(void *pvParameters)
#endif #endif
// displays[epdIndex].init(0, false); // displays[epdIndex].init(0, false);
bool updatePartial = true; bool updatePartial = true;
if (!lastFullRefresh[epdIndex])
// Full Refresh every half hour
if (!lastFullRefresh[epdIndex] || (millis() - lastFullRefresh[epdIndex]) > (30 * 60 * 1000))
{ {
updatePartial = false; updatePartial = false;
lastFullRefresh[epdIndex] = millis(); lastFullRefresh[epdIndex] = millis();