aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/fan.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-09-06 14:51:47 -0400
committerKevin O'Connor <kevin@koconnor.net>2017-09-07 11:19:27 -0400
commit7d17002b33f9f5da78bfde049331e125b426a4f9 (patch)
treed3fab2dd65f4e0b94914424269141b44f6968cc4 /klippy/fan.py
parent477b3941a6e0ea83d73fbb1ad9e2ac17696bd0a3 (diff)
downloadkutter-7d17002b33f9f5da78bfde049331e125b426a4f9.tar.gz
kutter-7d17002b33f9f5da78bfde049331e125b426a4f9.tar.xz
kutter-7d17002b33f9f5da78bfde049331e125b426a4f9.zip
fan: Allow heater_fan to work with heater_bed
Fix order of init error preventing heater_fan from being used with heater_bed. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/fan.py')
-rw-r--r--klippy/fan.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/klippy/fan.py b/klippy/fan.py
index 05e883a5..cd5c14c1 100644
--- a/klippy/fan.py
+++ b/klippy/fan.py
@@ -41,8 +41,6 @@ class PrinterHeaterFan:
self.fan = PrinterFan(printer, config)
heater = config.get("heater", "extruder0")
self.heater = extruder.get_printer_heater(printer, heater)
- if self.heater is None:
- raise config.error("Unknown heater '%s'" % (heater,))
self.heater_temp = config.getfloat("heater_temp", 50.0)
printer.reactor.register_timer(self.callback, printer.reactor.NOW)
def callback(self, eventtime):