change mode to correctly display

This commit is contained in:
reaw55 2024-03-31 23:50:59 +07:00
parent 7e7a0b9709
commit 89c4043faa
2 changed files with 9 additions and 9 deletions

View file

@ -864,14 +864,6 @@ void ISEDisplay::updateuserACmode()
switch (user_mode)
{
case 1:
this->displayAdapter->print("ac_mode.pic=");
this->displayAdapter->print(COMPONENT_AC_MODE_COOL_PIC);
this->sendStopBytes();
this->displayAdapter->print("ac_mode.pic2=");
this->displayAdapter->print(COMPONENT_AC_MODE_COOL_PIC_PRESSED);
this->sendStopBytes();
break;
case 2:
this->displayAdapter->print("ac_mode.pic=");
this->displayAdapter->print(COMPONENT_AC_MODE_FAN_PIC);
this->sendStopBytes();
@ -879,6 +871,14 @@ void ISEDisplay::updateuserACmode()
this->displayAdapter->print(COMPONENT_AC_MODE_FAN_PIC_PRESSED);
this->sendStopBytes();
break;
case 2:
this->displayAdapter->print("ac_mode.pic=");
this->displayAdapter->print(COMPONENT_AC_MODE_COOL_PIC);
this->sendStopBytes();
this->displayAdapter->print("ac_mode.pic2=");
this->displayAdapter->print(COMPONENT_AC_MODE_COOL_PIC_PRESSED);
this->sendStopBytes();
break;
default:
break;
}

View file

@ -74,7 +74,7 @@ class ISEDisplay : public ESPMegaDisplay {
u_int8_t lightLevelRow3;
u_int8_t lightLevelRow4;
void updateuserACmode();
void updateACfanSpeed();
bool calculateLightGroupState();