diff options
Diffstat (limited to 'klippy/extras/thermistor.py')
-rw-r--r-- | klippy/extras/thermistor.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/klippy/extras/thermistor.py b/klippy/extras/thermistor.py index 16d6ca61..db26b50c 100644 --- a/klippy/extras/thermistor.py +++ b/klippy/extras/thermistor.py @@ -15,7 +15,7 @@ class Thermistor: self.inline_resistor = inline_resistor self.c1 = self.c2 = self.c3 = 0. def setup_coefficients(self, t1, r1, t2, r2, t3, r3, name=""): - # Calculate Steinhart-Hart coefficents from temp measurements. + # Calculate Steinhart-Hart coefficients from temp measurements. # Arrange samples as 3 linear equations and solve for c1, c2, and c3. inv_t1 = 1. / (t1 - KELVIN_TO_CELSIUS) inv_t2 = 1. / (t2 - KELVIN_TO_CELSIUS) @@ -40,7 +40,7 @@ class Thermistor: self.c2 = (inv_t12 - self.c3 * ln3_r12) / ln_r12 self.c1 = inv_t1 - self.c2 * ln_r1 - self.c3 * ln3_r1 def setup_coefficients_beta(self, t1, r1, beta): - # Calculate equivalent Steinhart-Hart coefficents from beta + # Calculate equivalent Steinhart-Hart coefficients from beta inv_t1 = 1. / (t1 - KELVIN_TO_CELSIUS) ln_r1 = math.log(r1) self.c3 = 0. |