From 580186987084302de7ccd08c4b25881f30067bed Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 3 Dec 2023 15:13:03 -0600 Subject: [PATCH] Update powerwall.sh --- powerwall.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerwall.sh b/powerwall.sh index 1e83ab9d..1541d570 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -172,7 +172,7 @@ CHECKTEMPSENSOR(){ fi if [ "${temp_c}" != "null" ] && [ "${temp_c}" != "" ]; then - [ "${PW_SENSOR_TYPE[${1}]}" != "cpu" ] && temp_f=$(bc <<< "scale=1; ${temp_c}*1.8+32") || temp_f=temp_c + [ "${PW_SENSOR_TYPE[${1}]}" != "cpu" ] && temp_f=$(bc <<< "scale=1; ${temp_c}*1.8+32") || temp_f=${temp_c} #echo "${temp_c} -> ${temp_f}" c=0; spct=''; spc1=`expr 6 - ${#temp_f}`; until [ ${c} = ${spc1} ]; do spct="${spct} "; c=`expr ${c} + 1`; done