aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/thermistor.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2021-11-01 12:02:36 -0400
committerKevin O'Connor <kevin@koconnor.net>2021-11-10 18:52:55 -0500
commitc0909d2f7fcb94627b42b6707e7e197ecc094880 (patch)
treef72b88ccb8329b36f802fab336dd08d1b4a88c10 /klippy/extras/thermistor.py
parent596cd217516790e805fed7102b17ebbc7c14feb7 (diff)
downloadkutter-c0909d2f7fcb94627b42b6707e7e197ecc094880.tar.gz
kutter-c0909d2f7fcb94627b42b6707e7e197ecc094880.tar.xz
kutter-c0909d2f7fcb94627b42b6707e7e197ecc094880.zip
temperature_sensors: Define default thermistors in config
Move the definitions of the default thermistors from thermistors.py to the temperature_sensors.cfg file. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/thermistor.py')
-rw-r--r--klippy/extras/thermistor.py26
1 files changed, 0 insertions, 26 deletions
diff --git a/klippy/extras/thermistor.py b/klippy/extras/thermistor.py
index 475c1326..d04225b7 100644
--- a/klippy/extras/thermistor.py
+++ b/klippy/extras/thermistor.py
@@ -101,32 +101,6 @@ class CustomThermistor:
def create(self, config):
return PrinterThermistor(config, self.params)
-# Default sensors
-Sensors = {
- "EPCOS 100K B57560G104F": {
- 't1': 25., 'r1': 100000., 't2': 150., 'r2': 1641.9,
- 't3': 250., 'r3': 226.15 },
- "ATC Semitec 104GT-2": {
- 't1': 20., 'r1': 126800., 't2': 150., 'r2': 1360.,
- 't3': 300., 'r3': 80.65 },
- "SliceEngineering 450": {
- 't1': 25., 'r1': 500000., 't2': 200., 'r2': 3734.,
- 't3': 400., 'r3': 240. },
- "TDK NTCG104LH104JT1": {
- 't1': 25., 'r1': 100000., 't2': 50., 'r2': 31230.,
- 't3': 125., 'r3': 2066. },
- "NTC 100K beta 3950": { 't1': 25., 'r1': 100000., 'beta': 3950. },
- "Honeywell 100K 135-104LAG-J01": { 't1': 25., 'r1': 100000., 'beta': 3974.},
- "NTC 100K MGB18-104F39050L32": { 't1': 25., 'r1': 100000., 'beta': 4100. },
-}
-
-def load_config(config):
- # Register default thermistor types
- pheaters = config.get_printer().load_object(config, "heaters")
- for sensor_type, params in Sensors.items():
- func = (lambda config, params=params: PrinterThermistor(config, params))
- pheaters.add_sensor_factory(sensor_type, func)
-
def load_config_prefix(config):
thermistor = CustomThermistor(config)
pheaters = config.get_printer().load_object(config, "heaters")