Update temp.inc.sh

This commit is contained in:
2024-01-01 10:43:02 -06:00
parent c079fca24e
commit b8002df5e5

View File

@@ -399,7 +399,10 @@ CHECKTEMP_SERVICE_RUNSENSOR(){
temp_h=''
fi
echo "HERE1: ${SENSOR} = ${last_temp[${SENSOR//-/}]}"
[ "${last_temp[${SENSOR//-/}]}" == "" ] && last_temp[${SENSOR//-/}]=0
echo "HERE2: ${SENSOR} = ${last_temp[${SENSOR//-/}]}"
echo
logtemp=${PW_LOGFOLDER}/log-temp-${SENSOR}
if [ "${temp_c}" != "null" ] && [ "${temp_c}" != "" ]; then