aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/temperature_probe.py
diff options
context:
space:
mode:
authorThijs Triemstra <info@collab.nl>2025-07-25 18:31:19 +0200
committerGitHub <noreply@github.com>2025-07-25 12:31:19 -0400
commit60879fd298fe3b4f3dda63561e6a1c9bdc5ee9af (patch)
tree74cd5c84ca4758c2de14f0fd1686b75a74bfa142 /klippy/extras/temperature_probe.py
parentef4c76fe9494d0e011d6da5610fa868d2e702fff (diff)
downloadkutter-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/temperature_probe.py')
-rw-r--r--klippy/extras/temperature_probe.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/klippy/extras/temperature_probe.py b/klippy/extras/temperature_probe.py
index 05eac34e..c480ddae 100644
--- a/klippy/extras/temperature_probe.py
+++ b/klippy/extras/temperature_probe.py
@@ -408,7 +408,7 @@ class TemperatureProbe:
except self.printer.command_error:
self._finalize_drift_cal(False, "Error during initial move")
raise
- # Caputure start position and begin initial probe
+ # Capture start position and begin initial probe
toolhead = self.printer.lookup_object("toolhead")
self.start_pos = toolhead.get_position()[:2]
manual_probe.ManualProbeHelper(
@@ -637,7 +637,7 @@ class EddyDriftCompensation:
gcode = self.printer.lookup_object("gcode")
if len(cal_samples) < 3:
raise gcode.error(
- "calbration error, not enough samples"
+ "calibration error, not enough samples"
)
min_temp, _ = cal_samples[0][0]
max_temp, _ = cal_samples[-1][0]
@@ -687,7 +687,7 @@ class EddyDriftCompensation:
return self._calc_freq(freq, origin_temp, self.cal_temp)
def unadjust_freq(self, freq, dest_temp=None):
- # Given a frequency and its orignal sampled temp, find the
+ # Given a frequency and its original sampled temp, find the
# offset frequency based on the current temp
if not self.enabled or freq < self.min_freq:
return freq
@@ -703,7 +703,7 @@ class EddyDriftCompensation:
low_freq = poly(origin_temp)
if freq >= low_freq:
if high_freq is None:
- # Freqency above max calibration value
+ # Frequency above max calibration value
err = poly(dest_temp) - low_freq
return freq + err
t = min(1., max(0., (freq - low_freq) / (high_freq - low_freq)))