From 1a1a22720312bc42f6a6fc89566125e21e49ab18 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 19 May 2025 22:40:49 -0500 Subject: [PATCH] Update temp.inc.sh --- inc/temp.inc.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index 1ccdb9c4..8052051e 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -139,7 +139,13 @@ CHECKTEMP(){ c=0; spct=''; [ "${PW_SENSOR_TYPE[${SENSOR}]}" == "system" ] && [[ "${SENSOR}" = *"FAN"* ]] && spc1=`expr 4 - ${#temp_f}` || spc1=`expr 7 - ${#temp_f}` until [ ${c} = ${spc1} ]; do spct="${spct} "; ((c++)); done if [[ "${SENSOR}" = *"FAN"* ]]; then - reading="${lclr}${lmd}${spct}${temp_f}${GAUGESH}" + if [ ${#temp_f} -eq 5 ]; then + reading="${lclr}${lmd}${spct}${temp_f:0:2},${temp_f:2:3}${GAUGESH}" + elif [ ${#temp_f} -eq 4 ]; then + reading="${lclr}${lmd}${spct}${temp_f:0:1},${temp_f:1:3}${GAUGESH}" + else + reading="${lclr}${lmd}${spct}${temp_f}${GAUGESH}" + fi else reading="${lclr}${lmd}${spct}"$(IDS_NUMBER_FORMAT ${temp_f} 2 yes)"${GAUGESH}" fi