Full refresh a display every 30 minutes
This commit is contained in:
parent
f6796fa448
commit
922cb5ae0a
1 changed files with 3 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue