diff options
author | David Crocker <dcrocker@eschertech.com> | 2019-09-05 01:47:35 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2019-09-05 01:47:35 +0300 |
commit | 6bae475da88f029961b963b6e7d395d98426fc09 (patch) | |
tree | ff0b6765376e709bb40f4ebc7532e35c46b70447 /src/Fans/LocalFan.cpp | |
parent | 2d6c2a3c26bea91df303aac9a440f371648d2f71 (diff) |
More work on remote heater support
Implemented temperature setting of remote heaters
Implemented heater status broadcasts
Diffstat (limited to 'src/Fans/LocalFan.cpp')
-rw-r--r-- | src/Fans/LocalFan.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Fans/LocalFan.cpp b/src/Fans/LocalFan.cpp index 02684019..d9f004bc 100644 --- a/src/Fans/LocalFan.cpp +++ b/src/Fans/LocalFan.cpp @@ -86,8 +86,8 @@ void LocalFan::InternalRefresh() // Check if this sensor is both monitored by this fan and in use if (IsBitSet(sensorsMonitored, sensorNum)) { - TemperatureSensor * const sensor = reprap.GetHeat().GetSensor(sensorNum); - if (sensor != nullptr) + const auto sensor = reprap.GetHeat().FindSensor(sensorNum); + if (sensor.IsNotNull()) { //TODO we used to turn the fan on if the associated heater was being tuned float ht; |