Update temp.inc.sh

This commit is contained in:
2024-04-21 14:53:22 -05:00
parent e0177709bd
commit b168cac5a9

View File

@@ -300,6 +300,8 @@ CHECKTEMP(){
reading="${lclr}${lmd}${spct}${temp_f}${GAUGESH}"
echo -en "${idsCL[LightCyan]} ${sensorname}${spc}${idsCL[Default]}: ${reading}"
echo "HERE: ${PW_TMPFOLDER}/.lastinsert/${SENSOR}-${sensorname// /_}.old"
if [ -f ${PW_TMPFOLDER}/.lastinsert/${SENSOR}-${sensorname// /_}.old ]; then
if [ $(bc -l <<< "$(cat ${PW_TMPFOLDER}/.lastinsert/${SENSOR}-${sensorname// /_}.old | cut -d'~' -f 1) < ${temp_f}") -eq 1 ]; then
reading="${reading} ${idsCL[LightRed]}\u2B06 "