mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-08-05 04:54:11 -06:00
heaters: Make heater.py an "extras" module
The heater logic is an independent module that does not need to be treated as part of the "core" klipper code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
d858498a53
commit
17123889f6
16 changed files with 50 additions and 45 deletions
|
@ -35,8 +35,8 @@ class HeaterCheck:
|
|||
if self.printer.get_start_args().get('debugoutput') is not None:
|
||||
# Disable verify_heater if outputting to a debug file
|
||||
return
|
||||
pheater = self.printer.lookup_object('heater')
|
||||
self.heater = pheater.lookup_heater(self.heater_name)
|
||||
pheaters = self.printer.lookup_object('heaters')
|
||||
self.heater = pheaters.lookup_heater(self.heater_name)
|
||||
logging.info("Starting heater checks for %s", self.heater_name)
|
||||
reactor = self.printer.get_reactor()
|
||||
self.check_timer = reactor.register_timer(self.check_event, reactor.NOW)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue