diff --git a/defaults.inc b/defaults.inc index dfce0407..c44d1683 100755 --- a/defaults.inc +++ b/defaults.inc @@ -1,6 +1,6 @@ #!/usr/bin/env bash -VERS='2.7.93-08222024' +VERS='2.7.94-08222024' noheader=' update service dailytemp confsync -r -report test ' diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index a640e677..3ba506ec 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -1581,10 +1581,10 @@ SENDTEMP(){ IFS=: read -r temp_c temp_h <<< $(GET_TUYA_TEMP ${SENSORa}); unset IFS elif [ "${PW_SENSOR_TYPE[${SENSORa}]}" == "system" ]; then - if [[ "${SENSORa}" = *"CPU"* ]]; then + if [[ "${SENSOR}" = *"CPU"* ]]; then temp_c=$(vcgencmd measure_temp) temp_c=${temp_c%\'*}; temp_c=${temp_c#*=} - elif [[ "${SENSORa}" = *"FAN"* ]]; then + elif [[ "${SENSOR}" = *"FAN"* ]]; then temp_c=$(cat ${PW_FANINPUT}) fi