ui: drop redundant e-ink refresh special case (handled by display CRC)
This commit is contained in:
1 parent
39da9ce46e
commit
39fa6597c6
1 file changed
+1
-12
@@ -309,7 +309,6 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
int render(DisplayDriver& display) override {
|
int render(DisplayDriver& display) override {
|
||||||
int refresh_ms = 5000;
|
|
||||||
display.setColor(UIColor::title_bkg);
|
display.setColor(UIColor::title_bkg);
|
||||||
display.fillRect(0, 0, display.width(), 12);
|
display.fillRect(0, 0, display.width(), 12);
|
||||||
char tmp[80];
|
char tmp[80];
|
||||||
@@ -437,16 +436,6 @@ public:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (display.isEink()) {
|
|
||||||
if (_node_prefs->ui_show_clock && rtc_valid) {
|
|
||||||
uint32_t secs_left = 60 - (raw_now % 60);
|
|
||||||
if (secs_left == 0) secs_left = 60;
|
|
||||||
refresh_ms = (int)(secs_left * 1000);
|
|
||||||
} else {
|
|
||||||
refresh_ms = 60000;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} else if (_page == HomePage::RECENT) {
|
} else if (_page == HomePage::RECENT) {
|
||||||
display.setColor(UIColor::primary_txt);
|
display.setColor(UIColor::primary_txt);
|
||||||
int y = 20;
|
int y = 20;
|
||||||
@@ -689,7 +678,7 @@ public:
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
return refresh_ms; // next render delay
|
return 5000; // next render after 5000 ms
|
||||||
}
|
}
|
||||||
|
|
||||||
bool handleInput(char c) override {
|
bool handleInput(char c) override {
|
||||||
|
|||||||
Reference in new issue
Block a user