bugfix: too hot/cold zone count limit was always set to 2 when system was on
This commit is contained in:
parent
e9c9a40497
commit
6848a09bb7
|
@ -386,9 +386,9 @@ function generate_actions() { # populates global: nairconcommands & airconcmd
|
||||||
fi
|
fi
|
||||||
[[ ! -z $globsetmode ]] && globaction="power_on"
|
[[ ! -z $globsetmode ]] && globaction="power_on"
|
||||||
else
|
else
|
||||||
if [[ $airconmode == "heat" && $nhot -ge 2 ]]; then
|
if [[ $airconmode == "heat" && $nhot -ge $limit ]]; then
|
||||||
globprob="too_hot"
|
globprob="too_hot"
|
||||||
elif [[ $airconmode == "cool" && $ncold -ge 2 ]]; then
|
elif [[ $airconmode == "cool" && $ncold -ge $limit ]]; then
|
||||||
globprob="too_cold"
|
globprob="too_cold"
|
||||||
fi
|
fi
|
||||||
[[ ! -z $globprob ]] && globaction="power_off"
|
[[ ! -z $globprob ]] && globaction="power_off"
|
||||||
|
|
Loading…
Reference in New Issue