fan: Move fan code to extras directory

The print cooling fan and printer heater_fan are independent modules
that can reside in the extras directory.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2018-01-19 23:46:01 -05:00
parent 9399911490
commit d166d1f692
4 changed files with 78 additions and 66 deletions

View File

@@ -7,7 +7,7 @@
import sys, os, optparse, logging, time, threading
import collections, ConfigParser, importlib
import util, reactor, queuelogger, msgproto
import gcode, pins, mcu, chipmisc, toolhead, extruder, heater, fan
import gcode, pins, mcu, chipmisc, toolhead, extruder, heater
message_ready = "Printer is ready"
@@ -209,7 +209,7 @@ class Printer:
m.add_printer_objects(self, config)
for section in self.fileconfig.sections():
self._try_load_module(config, section)
for m in [chipmisc, toolhead, extruder, heater, fan]:
for m in [chipmisc, toolhead, extruder, heater]:
m.add_printer_objects(self, config)
# Validate that there are no undefined parameters in the config file
valid_sections = { s: 1 for s, o in self.all_config_options }