Remove initdisplay() from refreshes
This commit is contained in:
parent
0ede06588f
commit
2980013ea2
|
@ -542,9 +542,8 @@ void OBP60Task(GwApi *api){
|
||||||
if(millis() > starttime4 + 4000 && delayedDisplayUpdate == true){
|
if(millis() > starttime4 + 4000 && delayedDisplayUpdate == true){
|
||||||
starttime1 = millis();
|
starttime1 = millis();
|
||||||
starttime2 = millis();
|
starttime2 = millis();
|
||||||
getdisplay().init(115200); // Display init
|
|
||||||
getdisplay().setFullWindow(); // Set full update
|
getdisplay().setFullWindow(); // Set full update
|
||||||
getdisplay().firstPage();
|
getdisplay().nextPage();
|
||||||
if(fastrefresh == "false"){
|
if(fastrefresh == "false"){
|
||||||
getdisplay().fillScreen(pixelcolor);// Clear display
|
getdisplay().fillScreen(pixelcolor);// Clear display
|
||||||
getdisplay().nextPage(); // Full update
|
getdisplay().nextPage(); // Full update
|
||||||
|
@ -560,9 +559,8 @@ void OBP60Task(GwApi *api){
|
||||||
starttime1 = millis();
|
starttime1 = millis();
|
||||||
starttime2 = millis();
|
starttime2 = millis();
|
||||||
LOG_DEBUG(GwLog::DEBUG,"E-Ink full refresh first 5 min");
|
LOG_DEBUG(GwLog::DEBUG,"E-Ink full refresh first 5 min");
|
||||||
getdisplay().init(115200); // Display init
|
|
||||||
getdisplay().setFullWindow(); // Set full update
|
getdisplay().setFullWindow(); // Set full update
|
||||||
getdisplay().firstPage();
|
getdisplay().nextPage();
|
||||||
if(fastrefresh == "false"){
|
if(fastrefresh == "false"){
|
||||||
getdisplay().fillScreen(pixelcolor);// Clear display
|
getdisplay().fillScreen(pixelcolor);// Clear display
|
||||||
getdisplay().nextPage(); // Full update
|
getdisplay().nextPage(); // Full update
|
||||||
|
@ -575,9 +573,8 @@ void OBP60Task(GwApi *api){
|
||||||
if(millis() > starttime2 + fullrefreshtime * 60 * 1000){
|
if(millis() > starttime2 + fullrefreshtime * 60 * 1000){
|
||||||
starttime2 = millis();
|
starttime2 = millis();
|
||||||
LOG_DEBUG(GwLog::DEBUG,"E-Ink full refresh");
|
LOG_DEBUG(GwLog::DEBUG,"E-Ink full refresh");
|
||||||
getdisplay().init(115200); // Display init
|
|
||||||
getdisplay().setFullWindow(); // Set full update
|
getdisplay().setFullWindow(); // Set full update
|
||||||
getdisplay().firstPage();
|
getdisplay().nextPage();
|
||||||
if(fastrefresh == "false"){
|
if(fastrefresh == "false"){
|
||||||
getdisplay().fillScreen(pixelcolor);// Clear display
|
getdisplay().fillScreen(pixelcolor);// Clear display
|
||||||
getdisplay().nextPage(); // Full update
|
getdisplay().nextPage(); // Full update
|
||||||
|
|
Loading…
Reference in New Issue