diff --git a/powerwall.sh b/powerwall.sh index 9f6b2215..3a22bf9f 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -50,11 +50,8 @@ CHECKTEMPSENSOR(){ elif [ "${SENSOR_TYPE[${1}]}" == "system" ]; then temp_c=$(vcgencmd measure_temp) - echo "HERE: $temp_c" - temp_c=${test%\'*} - echo "HERE: $temp_c" - temp_c=${test#*=} - echo "HERE: $temp_c" + temp_c=${temp_c%\'*}; temp_c=${temp_c#*=} + fi if [ "$temp_c" != "null" ] && [ "$temp_c" != "" ]; then