aboutsummaryrefslogtreecommitdiffstats
path: root/klippy
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2021-11-01 13:54:11 -0400
committerKevin O'Connor <kevin@koconnor.net>2021-11-10 18:56:51 -0500
commitc179db3d4331db9d85c7acfdaa1e96e295d277ba (patch)
tree4e909be29cb1eed97e8af990116c12fc0a316649 /klippy
parent19aac4055da20c2e1cfe8c3e6c51126141969104 (diff)
downloadkutter-c179db3d4331db9d85c7acfdaa1e96e295d277ba.tar.gz
kutter-c179db3d4331db9d85c7acfdaa1e96e295d277ba.tar.xz
kutter-c179db3d4331db9d85c7acfdaa1e96e295d277ba.zip
temperature_sensors: Deprecate "NTC 100K beta 3950" thermistor
It seems the common "beta 3950" thermistors generally follow a temperature table defined by the new "Generic 3950" definition. Using a table that actually follows the "beta 3950" temperature curve is generally less accurate. Deprecate the existing "NTC 100K beta 3950" definition to avoid this common issue. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy')
-rw-r--r--klippy/extras/heaters.py2
-rw-r--r--klippy/extras/temperature_sensors.cfg2
2 files changed, 3 insertions, 1 deletions
diff --git a/klippy/extras/heaters.py b/klippy/extras/heaters.py
index 00c0e593..b0b2c16d 100644
--- a/klippy/extras/heaters.py
+++ b/klippy/extras/heaters.py
@@ -280,6 +280,8 @@ class PrinterHeaters:
if sensor_type not in self.sensor_factories:
raise self.printer.config_error(
"Unknown temperature sensor '%s'" % (sensor_type,))
+ if sensor_type == 'NTC 100K beta 3950':
+ config.deprecate('sensor_type', 'NTC 100K beta 3950')
return self.sensor_factories[sensor_type](config)
def register_sensor(self, config, psensor, gcode_id=None):
self.available_sensors.append(config.get_name())
diff --git a/klippy/extras/temperature_sensors.cfg b/klippy/extras/temperature_sensors.cfg
index 5d67102b..f50fa47d 100644
--- a/klippy/extras/temperature_sensors.cfg
+++ b/klippy/extras/temperature_sensors.cfg
@@ -87,7 +87,7 @@ temperature1: 25
resistance1: 100000
beta: 3974
-# Definition inherent from name
+# Definition inherent from name. This sensor is deprecated!
[thermistor NTC 100K beta 3950]
temperature1: 25
resistance1: 100000