Update temp.inc.sh

This commit is contained in:
2024-03-12 07:55:44 -05:00
parent 13f40bd8ac
commit f5a5005224

View File

@@ -809,10 +809,10 @@ Previous Temp: ${last_temp}${GAUGESH}"
[[ "${SENSOR}" = *"${PW_SHUTDOWN_SENSORS}"* ]] && rm -f ${PW_TMPFOLDER}/temp.*
rm -f ${PW_TMPFOLDER}/temp.*${SENSOR}*
rm -f ${PW_TMPFOLDER}/power.${SENSORa}.*
if [ "${last_temp}" != "1" ]; then
last_temp=1
echo ${last_temp} >| ${PW_TMPFOLDER}/.lasttemp/${SENSOR}
fi
# if [ "${last_temp}" != "1" ]; then
# last_temp=1
echo ${tempf} >| ${PW_TMPFOLDER}/.lasttemp/${SENSOR}
# fi
elif [[ "${SENSORa}" != *"-Usage"* ]] && [[ "${SENSORa}" != *"FAN"* ]]; then