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 }