From ca5f7d446173d450615a3e7ca17785d090c5e90d Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 1 Jan 2024 10:48:42 -0600 Subject: [PATCH] Update temp.inc.sh --- inc/temp.inc.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index 0306f724..d7ecd67e 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -269,7 +269,7 @@ AVERAGETEMP(){ CHECKTEMP_SERVICE(){ cw=20 - declare -A last_temp + declare -gA last_temp runEvery=15 #SECONDS echo -e "($(date +'%Y-%m-%d %H:%M:%S')) - 'Check Temp' Service Startup" >> ${PW_LOGFILE} SENDTEMPS "TEMP Service Startup" & @@ -641,7 +641,6 @@ CHECKTEMP_SERVICE_RUNSENSOR(){ echo "($(date +'%Y-%m-%d %H:%M:%S')) - ${SENSORa} Sensor - ERROR reading sensor data" >> ${logtemp} fi fi - export last_temp touch ${PW_TMPFOLDER}/zservicerun.${SENSORa}.done }