no need to set new temp in condition

This commit is contained in:
proddy
2021-08-08 09:15:03 +02:00
parent 59797fb89c
commit 20c3e8c7bd

View File

@@ -142,7 +142,6 @@ void DallasSensor::loop() {
if (sensor.id() == get_id(addr)) { if (sensor.id() == get_id(addr)) {
t += sensor.offset(); t += sensor.offset();
if (t != sensor.temperature_c) { if (t != sensor.temperature_c) {
sensor.temperature_c = t;
changed_ |= true; changed_ |= true;
} }
sensor.temperature_c = t; sensor.temperature_c = t;