From 53f940dbe46b441f549bd3c9cb24b714877f0359 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Wed, 10 Apr 2024 10:46:30 -0500 Subject: [PATCH] Update temp.inc.sh --- inc/temp.inc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index a4ed542a..2e298aa1 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -426,7 +426,7 @@ CHECKTEMPSENSOR(){ temp_f=$(echo "scale=2; $temp_c/1" | bc -l) elif [ "${PW_SENSOR_TYPE[${1}]}" == "system" ] && [[ "${1}" = *"FAN"* ]]; then temp_f=${temp_c} - elif [ "${temp_f}" != "" ]; then + elif [ "${temp_f}" == "" ]; then temp_f=$(bc <<< "scale=2; (${temp_c}*(9/5))+32") fi (( $(bc <<<"${temp_f} < 1") )) && [[ "${temp_f}" = *"."* ]] && temp_f="0${temp_f}"