From 6848a09bb7d24d5c42e47b97f42e1d0f442a83e1 Mon Sep 17 00:00:00 2001 From: Rob Pearce Date: Fri, 30 Jul 2021 22:11:13 +1000 Subject: [PATCH] bugfix: too hot/cold zone count limit was always set to 2 when system was on --- aircon.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aircon.sh b/aircon.sh index e6058ad..e435648 100755 --- a/aircon.sh +++ b/aircon.sh @@ -386,9 +386,9 @@ function generate_actions() { # populates global: nairconcommands & airconcmd fi [[ ! -z $globsetmode ]] && globaction="power_on" else - if [[ $airconmode == "heat" && $nhot -ge 2 ]]; then + if [[ $airconmode == "heat" && $nhot -ge $limit ]]; then globprob="too_hot" - elif [[ $airconmode == "cool" && $ncold -ge 2 ]]; then + elif [[ $airconmode == "cool" && $ncold -ge $limit ]]; then globprob="too_cold" fi [[ ! -z $globprob ]] && globaction="power_off"