diff --git a/lib/obp60task/obp60task.cpp b/lib/obp60task/obp60task.cpp index 9d632bbc..c91c03f6 100644 --- a/lib/obp60task/obp60task.cpp +++ b/lib/obp60task/obp60task.cpp @@ -546,13 +546,15 @@ 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(); if(fastrefresh == "false"){ getdisplay().fillScreen(pixelcolor);// Clear display getdisplay().nextPage(); // Full update getdisplay().fillScreen(bgcolor); // Clear display + getdisplay().nextPage(); // Full update } - getdisplay().nextPage(); // Full update delayedDisplayUpdate = false; } @@ -562,26 +564,30 @@ 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(); if(fastrefresh == "false"){ getdisplay().fillScreen(pixelcolor);// Clear display getdisplay().nextPage(); // Full update getdisplay().fillScreen(bgcolor); // Clear display + getdisplay().nextPage(); // Full update } - getdisplay().nextPage(); // Full update } // Subtask E-Ink full refresh 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(); if(fastrefresh == "false"){ getdisplay().fillScreen(pixelcolor);// Clear display getdisplay().nextPage(); // Full update getdisplay().fillScreen(bgcolor); // Clear display + getdisplay().nextPage(); // Full update } - getdisplay().nextPage(); // Full update } // Refresh display data all 1s