aboutsummaryrefslogtreecommitdiffstats
path: root/klippy
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2020-05-26 14:42:24 -0400
committerKevin O'Connor <kevin@koconnor.net>2020-05-26 14:46:15 -0400
commit04532448bcb3928438d1215a579336a05addcca8 (patch)
treedacc912e1e1438b95bbd2879fd349c9ac87aaaca /klippy
parent686d557863b5a529ec26c017ecd6bf7f5f05eb86 (diff)
downloadkutter-04532448bcb3928438d1215a579336a05addcca8.tar.gz
kutter-04532448bcb3928438d1215a579336a05addcca8.tar.xz
kutter-04532448bcb3928438d1215a579336a05addcca8.zip
tuning_tower: Remove max(0, z) check
Commit 9530373c introduced a minimum value of zero for the g-code z position. Unfortunately, that would likely cause the tuning tower to not emit a command at the start of a test because the initial dummy z position is set to a negative value. The minimum bound should not be needed so remove it. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy')
-rw-r--r--klippy/extras/tuning_tower.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/extras/tuning_tower.py b/klippy/extras/tuning_tower.py
index b07e0055..ea6d5765 100644
--- a/klippy/extras/tuning_tower.py
+++ b/klippy/extras/tuning_tower.py
@@ -48,7 +48,7 @@ class TuningTower:
# Compensate Z-Offset
gcode = self.printer.lookup_object("gcode")
z_offset = gcode.get_status(None)['base_zpos']
- z = max(0, z - z_offset)
+ z = z - z_offset
if self.band:
z = (math.floor(z / self.band) + .5) * self.band
return self.start + z * self.factor