aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/heater.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2020-02-27 11:31:51 -0500
committerKevin O'Connor <kevin@koconnor.net>2020-02-27 11:31:51 -0500
commitc197fdb03d3d54724e862cbf3b472f5434b88dc5 (patch)
tree8fe2a871cd0e3545ba49c900ef4c2265bdb3adc5 /klippy/heater.py
parent16e59511c3cdda2407c5e840eeedce00f22677de (diff)
downloadkutter-c197fdb03d3d54724e862cbf3b472f5434b88dc5.tar.gz
kutter-c197fdb03d3d54724e862cbf3b472f5434b88dc5.tar.xz
kutter-c197fdb03d3d54724e862cbf3b472f5434b88dc5.zip
heater: Fix misspelling of Celsius
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/heater.py')
-rw-r--r--klippy/heater.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/klippy/heater.py b/klippy/heater.py
index 4228dfc1..5e671a5b 100644
--- a/klippy/heater.py
+++ b/klippy/heater.py
@@ -10,7 +10,7 @@ import logging, threading
# Heater
######################################################################
-KELVIN_TO_CELCIUS = -273.15
+KELVIN_TO_CELSIUS = -273.15
MAX_HEAT_TIME = 5.0
AMBIENT_TEMP = 25.
PID_PARAM_BASE = 255.
@@ -22,7 +22,7 @@ class Heater:
self.name = config.get_name().split()[-1]
# Setup sensor
self.sensor = sensor
- self.min_temp = config.getfloat('min_temp', minval=KELVIN_TO_CELCIUS)
+ self.min_temp = config.getfloat('min_temp', minval=KELVIN_TO_CELSIUS)
self.max_temp = config.getfloat('max_temp', above=self.min_temp)
self.sensor.setup_minmax(self.min_temp, self.max_temp)
self.sensor.setup_callback(self.temperature_callback)