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>
This commit is contained in:
Kevin O'Connor 2018-05-23 00:27:32 -04:00
parent 3025638b9b
commit 3e1febce78
1 changed files with 2 additions and 1 deletions

View File

@ -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