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>
This commit is contained in:
parent
686d557863
commit
04532448bc
|
@ -48,7 +48,7 @@ class TuningTower:
|
||||||
# Compensate Z-Offset
|
# Compensate Z-Offset
|
||||||
gcode = self.printer.lookup_object("gcode")
|
gcode = self.printer.lookup_object("gcode")
|
||||||
z_offset = gcode.get_status(None)['base_zpos']
|
z_offset = gcode.get_status(None)['base_zpos']
|
||||||
z = max(0, z - z_offset)
|
z = z - z_offset
|
||||||
if self.band:
|
if self.band:
|
||||||
z = (math.floor(z / self.band) + .5) * self.band
|
z = (math.floor(z / self.band) + .5) * self.band
|
||||||
return self.start + z * self.factor
|
return self.start + z * self.factor
|
||||||
|
|
Loading…
Reference in New Issue