mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-24 07:04:01 -06:00
heater: Add PrinterHeaters class that stores all sensors and heaters
Add a PrinterHeaters class that can stores references to available temperature sensors and stores references to instantiated heaters. Add a extras/heater_bed.py file and delay instantiation of the heater_bed object. This allows the heater.py module to be imported earlier during the setup phase, and allows the PrinterHeaters class to be available for registering sensors and heaters. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
4eeb43b191
commit
aed958eb5c
7 changed files with 67 additions and 31 deletions
8
klippy/extras/heater_bed.py
Normal file
8
klippy/extras/heater_bed.py
Normal file
|
@ -0,0 +1,8 @@
|
|||
# Support for a heated bed
|
||||
#
|
||||
# Copyright (C) 2018 Kevin O'Connor <kevin@koconnor.net>
|
||||
#
|
||||
# This file may be distributed under the terms of the GNU GPLv3 license.
|
||||
|
||||
def load_config(config):
|
||||
return config.get_printer().lookup_object('heater').setup_heater(config)
|
Loading…
Add table
Add a link
Reference in a new issue