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:
fess 2020-05-18 04:38:22 +00:00 committed by KevinOConnor
parent 7b0e6725ca
commit c9daefd97f
1 changed files with 1 additions and 1 deletions

View File

@ -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,