From c0909d2f7fcb94627b42b6707e7e197ecc094880 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Mon, 1 Nov 2021 12:02:36 -0400 Subject: 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 --- klippy/extras/thermistor.py | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'klippy/extras/thermistor.py') 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") -- cgit v1.2.3-70-g09d2