mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
no need to set new temp in condition
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user