aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/klippy.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-07-04 12:24:11 -0400
committerKevin O'Connor <kevin@koconnor.net>2017-07-17 11:35:52 -0400
commit969485c754731183f357e6fef23c6180f59d4cb6 (patch)
treef152a57906579fca334035e77d733f990912a32b /klippy/klippy.py
parent519e81d0faf7be36ec94c865a1e0c97d78b6774c (diff)
downloadkutter-969485c754731183f357e6fef23c6180f59d4cb6.tar.gz
kutter-969485c754731183f357e6fef23c6180f59d4cb6.tar.xz
kutter-969485c754731183f357e6fef23c6180f59d4cb6.zip
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 <kevin@koconnor.net>
Diffstat (limited to 'klippy/klippy.py')
-rw-r--r--klippy/klippy.py3
1 files changed, 3 insertions, 0 deletions
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):