From 2980013ea214ac2dde225aa3e5952b9bdcda01d9 Mon Sep 17 00:00:00 2001 From: norbert-walter Date: Fri, 20 Sep 2024 12:41:26 +0200 Subject: [PATCH] Remove initdisplay() from refreshes --- lib/obp60task/obp60task.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/obp60task/obp60task.cpp b/lib/obp60task/obp60task.cpp index d21ed68..ab119ea 100644 --- a/lib/obp60task/obp60task.cpp +++ b/lib/obp60task/obp60task.cpp @@ -542,9 +542,8 @@ void OBP60Task(GwApi *api){ if(millis() > starttime4 + 4000 && delayedDisplayUpdate == true){ starttime1 = millis(); starttime2 = millis(); - getdisplay().init(115200); // Display init getdisplay().setFullWindow(); // Set full update - getdisplay().firstPage(); + getdisplay().nextPage(); if(fastrefresh == "false"){ getdisplay().fillScreen(pixelcolor);// Clear display getdisplay().nextPage(); // Full update @@ -560,9 +559,8 @@ void OBP60Task(GwApi *api){ starttime1 = millis(); starttime2 = millis(); LOG_DEBUG(GwLog::DEBUG,"E-Ink full refresh first 5 min"); - getdisplay().init(115200); // Display init getdisplay().setFullWindow(); // Set full update - getdisplay().firstPage(); + getdisplay().nextPage(); if(fastrefresh == "false"){ getdisplay().fillScreen(pixelcolor);// Clear display getdisplay().nextPage(); // Full update @@ -575,9 +573,8 @@ void OBP60Task(GwApi *api){ if(millis() > starttime2 + fullrefreshtime * 60 * 1000){ starttime2 = millis(); LOG_DEBUG(GwLog::DEBUG,"E-Ink full refresh"); - getdisplay().init(115200); // Display init getdisplay().setFullWindow(); // Set full update - getdisplay().firstPage(); + getdisplay().nextPage(); if(fastrefresh == "false"){ getdisplay().fillScreen(pixelcolor);// Clear display getdisplay().nextPage(); // Full update