aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2018-05-23 00:27:32 -0400
committerKevin O'Connor <kevin@koconnor.net>2018-05-23 00:27:32 -0400
commit3e1febce78d225b91f5a3dd95d4bec3a4874cfde (patch)
treed8d16f3bbadec61517b49439746d7c01ebcc3b05 /klippy/extras
parent3025638b9bf18aca951a5d77fb4ea3c243a01336 (diff)
downloadkutter-3e1febce78d225b91f5a3dd95d4bec3a4874cfde.tar.gz
kutter-3e1febce78d225b91f5a3dd95d4bec3a4874cfde.tar.xz
kutter-3e1febce78d225b91f5a3dd95d4bec3a4874cfde.zip
temperature_fan: Don't always enable stats generation
Don't return True from the stats() method - that keeps stats logging on permanently. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras')
-rw-r--r--klippy/extras/temperature_fan.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/klippy/extras/temperature_fan.py b/klippy/extras/temperature_fan.py
index f6ce6081..b6f4e47f 100644
--- a/klippy/extras/temperature_fan.py
+++ b/klippy/extras/temperature_fan.py
@@ -50,7 +50,8 @@ class TemperatureFan:
self.last_temp = temp
self.control.temperature_callback(read_time, temp)
def stats(self, eventtime):
- return True, '%s: temp=%.1f fan_speed=%.3f' % (self.name, self.last_temp, self.last_speed_value)
+ return False, '%s: temp=%.1f fan_speed=%.3f' % (
+ self.name, self.last_temp, self.last_speed_value)
######################################################################
# Bang-bang control algo