From aed958eb5c32003c7ffcd10d8852082b6d896794 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Tue, 3 Apr 2018 17:01:10 -0400 Subject: 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 --- klippy/extras/heater_bed.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 klippy/extras/heater_bed.py (limited to 'klippy/extras/heater_bed.py') diff --git a/klippy/extras/heater_bed.py b/klippy/extras/heater_bed.py new file mode 100644 index 00000000..94040b8c --- /dev/null +++ b/klippy/extras/heater_bed.py @@ -0,0 +1,8 @@ +# Support for a heated bed +# +# Copyright (C) 2018 Kevin O'Connor +# +# 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) -- cgit v1.2.3-70-g09d2