debugged for AC to work
This commit is contained in:
parent
32c4af34f1
commit
a294430c0a
1 changed files with 7 additions and 2 deletions
|
|
@ -1188,13 +1188,18 @@ void ISEDisplay::toggleSystem()
|
||||||
bool state = calculateAllState();
|
bool state = calculateAllState();
|
||||||
if (state)
|
if (state)
|
||||||
{
|
{
|
||||||
setACstate(0, ac_fan_speed, ac_temperature);
|
//if AC mode is not zero, toggleAC()
|
||||||
|
if(ac_mode != 0) {
|
||||||
|
toggleAC();
|
||||||
|
}
|
||||||
setLightGroupState(0);
|
setLightGroupState(0);
|
||||||
setPMstate(false, pm_fan_speed);
|
setPMstate(false, pm_fan_speed);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
setACstate(2, ac_fan_speed, ac_temperature);
|
if(ac_mode == 0) {
|
||||||
|
toggleAC();
|
||||||
|
}
|
||||||
setLightGroupState(3);
|
setLightGroupState(3);
|
||||||
setPMstate(true, pm_fan_speed);
|
setPMstate(true, pm_fan_speed);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue