diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2017-04-29 13:57:02 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2017-06-09 18:54:34 -0400 |
commit | 136dccbcdfc6a20c8b6755afdfb65891cee3d1a7 (patch) | |
tree | fb195571d64d97f79c6197c9c46d02319d347356 /klippy/toolhead.py | |
parent | d0e6a0928b483f29a3bcfd86d16192bef5652042 (diff) | |
download | kutter-136dccbcdfc6a20c8b6755afdfb65891cee3d1a7.tar.gz kutter-136dccbcdfc6a20c8b6755afdfb65891cee3d1a7.tar.xz kutter-136dccbcdfc6a20c8b6755afdfb65891cee3d1a7.zip |
klippy: Allow each module to define their config sections
Create add_printer_objects() functions in the fan, heater, extruder,
and toolhead modules. Create the necessary printer component objects
from this call instead of placing the code directly in klippy.py.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/toolhead.py')
-rw-r--r-- | klippy/toolhead.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/klippy/toolhead.py b/klippy/toolhead.py index 4329a712..7b25c7e5 100644 --- a/klippy/toolhead.py +++ b/klippy/toolhead.py @@ -382,3 +382,6 @@ class ToolHead: self.reset_print_time() except: logging.exception("Exception in force_shutdown") + +def add_printer_objects(printer, config): + printer.add_object('toolhead', ToolHead(printer, config)) |