Remove initdisplay() from refreshes

This commit is contained in:
norbert-walter 2024-09-20 12:41:26 +02:00
parent 0ede06588f
commit 2980013ea2
1 changed files with 3 additions and 6 deletions

View File

@ -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