diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index 0200d040..0f4df685 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -757,9 +757,8 @@ CHECKTEMPSENSOR(){ fi elif [ "${PW_SENSOR_TYPE[${1}]}" == "ds18b20" ]; then - echo "HERE: ${1} - ${PW_SENSOR_DEVICEID[${1}]}" if ! temp_c=$(${SSHCMD} root@${PW_REMOTE_SENSORS[${1}]} cat /sys/devices/w1_bus_master1/${PW_SENSOR_DEVICEID[${1}]}/w1_slave | tail -n1 | cut -d "=" -f2) ; then TIMEOUT=1; fi - [ "${temp_c}" != "" ] && temp_c=$(echo "scale=2; ${temp_c}/1000" | bc) + [ "${temp_c}" != "" ] && temp_c=$(echo "scale=2; ${temp_c}/1000" | tr -d $'\r' | bc) fi