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(){
|
void update_display(){
|
||||||
|
static DisplayPage page = PAGE_DRIVER;
|
||||||
|
static uint32_t last_cleared;
|
||||||
|
static bool cleared = true;
|
||||||
|
|
||||||
if (check_alarms()) {
|
if (check_alarms()) {
|
||||||
|
cleared = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (tft.disconnected) {
|
if (tft.disconnected) {
|
||||||
@ -181,12 +186,10 @@ void update_display(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (check_enc_displays()) {
|
if (check_enc_displays()) {
|
||||||
|
cleared = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
static DisplayPage page = PAGE_DRIVER;
|
|
||||||
static uint32_t last_cleared;
|
|
||||||
static bool cleared = true;
|
|
||||||
uint32_t now = millis();
|
uint32_t now = millis();
|
||||||
if(Stw_data.button1_rises > 0){
|
if(Stw_data.button1_rises > 0){
|
||||||
Stw_data.button1_rises--;
|
Stw_data.button1_rises--;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user