adjust ac value, fix weather in standby, add mutex safeguard

This commit is contained in:
reaw 2024-02-17 01:19:16 +07:00
parent 68dac6a4d0
commit 9016c70fac
3 changed files with 9 additions and 5 deletions

View file

@ -945,11 +945,15 @@ void ISEDisplay::updateACState()
this->displayAdapter->print("ac_sw.pic2=");
this->displayAdapter->print(mode != 0 ? COMPONENT_AC_TOGGLE_PIC_ON_PRESSED : COMPONENT_AC_TOGGLE_PIC_OFF_PRESSED);
this->sendStopBytes();
this->giveSerialMutex();
updateuserACmode();
updateACfanSpeed();
if (!this->takeSerialMutex())
return;
this->displayAdapter->print("ac_temp.val=");
this->displayAdapter->print(temperature);
// this->displayAdapter->print("\"");