heater_fan: add get_status method
Signed-off-by: Janar Sööt <janar.soot@gmail.com>
This commit is contained in:
parent
3f96c0abd8
commit
e519ab2031
|
@ -23,6 +23,8 @@ class PrinterHeaterFan:
|
||||||
for n in self.heater_name.split(',')]
|
for n in self.heater_name.split(',')]
|
||||||
reactor = self.printer.get_reactor()
|
reactor = self.printer.get_reactor()
|
||||||
reactor.register_timer(self.callback, reactor.NOW)
|
reactor.register_timer(self.callback, reactor.NOW)
|
||||||
|
def get_status(self, eventtime):
|
||||||
|
return self.fan.get_status(eventtime)
|
||||||
def callback(self, eventtime):
|
def callback(self, eventtime):
|
||||||
power = 0.
|
power = 0.
|
||||||
for heater in self.heaters:
|
for heater in self.heaters:
|
||||||
|
|
Loading…
Reference in New Issue