Update temp.inc.sh

This commit is contained in:
2024-04-10 10:46:30 -05:00
parent 47f73a3ec8
commit 53f940dbe4

View File

@@ -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}"