debugged for AC to work

This commit is contained in:
reaw55 2024-06-24 08:01:34 +07:00
parent 32c4af34f1
commit a294430c0a

View file

@ -1188,13 +1188,18 @@ void ISEDisplay::toggleSystem()
bool state = calculateAllState();
if (state)
{
setACstate(0, ac_fan_speed, ac_temperature);
//if AC mode is not zero, toggleAC()
if(ac_mode != 0) {
toggleAC();
}
setLightGroupState(0);
setPMstate(false, pm_fan_speed);
}
else
{
setACstate(2, ac_fan_speed, ac_temperature);
if(ac_mode == 0) {
toggleAC();
}
setLightGroupState(3);
setPMstate(true, pm_fan_speed);
}