controller_fan: add get_status (#3566)

Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
Stefan Dej 2020-11-23 17:55:14 +01:00 committed by GitHub
parent 88c7bf830f
commit 7266473fec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -31,6 +31,8 @@ class ControllerFan:
self.stepper_names = [s.get_name() for s in kin.get_steppers()]
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.
active = False