From 3e1febce78d225b91f5a3dd95d4bec3a4874cfde Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Wed, 23 May 2018 00:27:32 -0400 Subject: [PATCH] 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 --- klippy/extras/temperature_fan.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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