From 66d9da3255ac8273c20031dd64010608fe1797f0 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 21 Apr 2024 15:04:09 -0500 Subject: [PATCH] Update temp.inc.sh --- inc/temp.inc.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index 7f10c53e..a311d619 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -127,7 +127,8 @@ CHECKTEMP(){ until [ ${c} = ${spc1} ]; do spct="${spct} "; c=`expr ${c} + 1`; done reading="${lclr}${lmd}${spct}${temp_f_disp}${GAUGESH}" - if [ -f ${PW_TMPFOLDER}/.lastinsert/${SENSOR}.old ]; then + echo "HERE: ${avgdays}" + if [ "${avgdays}" = "noavg" ] && [ -f ${PW_TMPFOLDER}/.lastinsert/${SENSOR}.old ]; then if [ $(bc -l <<< "$(cat ${PW_TMPFOLDER}/.lastinsert/${SENSOR}.old | cut -d'~' -f 1) < ${temp_f}") -eq 1 ]; then reading="${reading} ${idsCL[LightRed]}\u2B06 " elif [ $(bc -l <<< "${temp_f} < $(cat ${PW_TMPFOLDER}/.lastinsert/${SENSOR}.old | cut -d'~' -f 1)") -eq 1 ]; then