update library; adjusted update behavior
This commit is contained in:
parent
c08a762c00
commit
ee4126f0a0
3 changed files with 11 additions and 2 deletions
|
|
@ -712,6 +712,14 @@ void ISEDisplay::updateAirPurifierStateStandby()
|
|||
|
||||
void ISEDisplay::updateAirPurifierState()
|
||||
{
|
||||
//check for page
|
||||
if(currentPage != 2){
|
||||
return;
|
||||
}
|
||||
else if(currentPage ==1){
|
||||
updateAirPurifierStateStandby();
|
||||
return;
|
||||
}
|
||||
// Get the state
|
||||
bool state = strcmp(pm_switch->getValue(), "on") == 0;
|
||||
ESP_LOGI("ISEDisplay", "Updating air purifier state to: %d", state);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue