Don't clear display periodically
This commit is contained in:
parent
c6c0fa987e
commit
4de2baa867
|
@ -237,12 +237,6 @@ void update_display() {
|
|||
cleared = true;
|
||||
}
|
||||
|
||||
if (now - last_cleared >= DISP_CLEAR_INTERVAL) {
|
||||
tft.clear();
|
||||
last_cleared = now;
|
||||
cleared = true;
|
||||
}
|
||||
|
||||
if (page == PAGE_DRIVER) {
|
||||
if (cleared) {
|
||||
redraw_page_driver();
|
||||
|
|
|
@ -50,8 +50,6 @@ enum Value {
|
|||
String get_value(Value val);
|
||||
String get_label(Value val);
|
||||
|
||||
#define DISP_CLEAR_INTERVAL 5000 // ms
|
||||
|
||||
void init_display(void);
|
||||
void update_display(void);
|
||||
void display_trc(void);
|
||||
|
|
Loading…
Reference in New Issue