From 922cb5ae0a7b3847de63fe2c05a57796a3fff8d6 Mon Sep 17 00:00:00 2001 From: Djuri Baars Date: Sat, 9 Sep 2023 20:45:05 +0200 Subject: [PATCH] Full refresh a display every 30 minutes --- src/tasks/epd.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tasks/epd.cpp b/src/tasks/epd.cpp index c0df9fc..9c034cb 100644 --- a/src/tasks/epd.cpp +++ b/src/tasks/epd.cpp @@ -319,7 +319,9 @@ void updateDisplay(void *pvParameters) #endif // displays[epdIndex].init(0, false); bool updatePartial = true; - if (!lastFullRefresh[epdIndex]) + + // Full Refresh every half hour + if (!lastFullRefresh[epdIndex] || (millis() - lastFullRefresh[epdIndex]) > (30 * 60 * 1000)) { updatePartial = false; lastFullRefresh[epdIndex] = millis();