heater_fan: add get_status method

Signed-off-by: Janar Sööt <janar.soot@gmail.com>
This commit is contained in:
Janar Sööt authored and Kevin O'Connor committed 2019-06-04 11:43:34 -04:00
1 parent 3f96c0abd8
commit e519ab2031
1 file changed
+2
+2
View File
@@ -23,6 +23,8 @@ class PrinterHeaterFan:
for n in self.heater_name.split(',')]
reactor = self.printer.get_reactor()
reactor.register_timer(self.callback, reactor.NOW)
def get_status(self, eventtime):
return self.fan.get_status(eventtime)
def callback(self, eventtime):
power = 0.
for heater in self.heaters: