From 969485c754731183f357e6fef23c6180f59d4cb6 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Tue, 4 Jul 2017 12:24:11 -0400 Subject: fan: Add support for heater_fan objects Add support for fans designed to cool the components of an extruder or heater. Signed-off-by: Kevin O'Connor --- klippy/klippy.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'klippy/klippy.py') diff --git a/klippy/klippy.py b/klippy/klippy.py index 16c864e0..7e9bf6d8 100644 --- a/klippy/klippy.py +++ b/klippy/klippy.py @@ -107,6 +107,9 @@ class ConfigWrapper: return ConfigWrapper(self.printer, section) def has_section(self, section): return self.printer.fileconfig.has_section(section) + def get_prefix_sections(self, prefix): + return [self.getsection(s) for s in self.printer.fileconfig.sections() + if s.startswith(prefix)] class ConfigLogger(): def __init__(self, cfg, bglogger): -- cgit v1.2.3-70-g09d2