z_tilt: retries, fix extra retry bug.
round to only 6 decimal places of precision. prevents doing extra retry from small variations due to floating point math. Signed-off-by: John "Fess" Fessenden <fess@fess.org>
This commit is contained in:
parent
7b0e6725ca
commit
c9daefd97f
|
@ -93,7 +93,7 @@ class RetryHelper:
|
|||
def check_retry(self, z_positions):
|
||||
if self.max_retries == 0:
|
||||
return
|
||||
error = max(z_positions) - min(z_positions)
|
||||
error = round(max(z_positions) - min(z_positions),6)
|
||||
self.gcode.respond_info(
|
||||
"Retries: %d/%d %s: %0.6f tolerance: %0.6f" % (
|
||||
self.current_retry, self.max_retries, self.value_label,
|
||||
|
|
Loading…
Reference in New Issue