diff options
author | Thijs Triemstra <info@collab.nl> | 2025-07-25 18:31:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-25 12:31:19 -0400 |
commit | 60879fd298fe3b4f3dda63561e6a1c9bdc5ee9af (patch) | |
tree | 74cd5c84ca4758c2de14f0fd1686b75a74bfa142 /klippy/extras/thermistor.py | |
parent | ef4c76fe9494d0e011d6da5610fa868d2e702fff (diff) | |
download | kutter-60879fd298fe3b4f3dda63561e6a1c9bdc5ee9af.tar.gz kutter-60879fd298fe3b4f3dda63561e6a1c9bdc5ee9af.tar.xz kutter-60879fd298fe3b4f3dda63561e6a1c9bdc5ee9af.zip |
klippy: fix typos in python code (#6989)
Signed-off-by: Thijs Triemstra <info@collab.nl>
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. |