Redraw screen after alarms/changing encoders
This commit is contained in:
parent
5eecc507a0
commit
894ced16ef
|
@ -173,7 +173,12 @@ bool check_display(uint8_t& val_old, uint8_t val_new, bool& active, uint32_t& be
|
|||
}
|
||||
|
||||
void update_display(){
|
||||
static DisplayPage page = PAGE_DRIVER;
|
||||
static uint32_t last_cleared;
|
||||
static bool cleared = true;
|
||||
|
||||
if (check_alarms()) {
|
||||
cleared = true;
|
||||
return;
|
||||
}
|
||||
if (tft.disconnected) {
|
||||
|
@ -181,12 +186,10 @@ void update_display(){
|
|||
}
|
||||
|
||||
if (check_enc_displays()) {
|
||||
cleared = true;
|
||||
return;
|
||||
}
|
||||
|
||||
static DisplayPage page = PAGE_DRIVER;
|
||||
static uint32_t last_cleared;
|
||||
static bool cleared = true;
|
||||
uint32_t now = millis();
|
||||
if(Stw_data.button1_rises > 0){
|
||||
Stw_data.button1_rises--;
|
||||
|
|
Loading…
Reference in New Issue