z_tilt: retries fixup err message

print retries status before erroring on increase

Signed-off-by: John "Fess" Fessenden <fess@fess.org>
This commit is contained in:
fess 2020-05-18 04:36:16 +00:00 committed by KevinOConnor
parent 8fd330c54e
commit 7b0e6725ca
1 changed files with 3 additions and 3 deletions

View File

@ -94,13 +94,13 @@ class RetryHelper:
if self.max_retries == 0:
return
error = max(z_positions) - min(z_positions)
if self.check_increase(error):
raise self.gcode.error("Retries aborting: %s is increasing. %s"
% (self.value_label, self.error_msg_extra))
self.gcode.respond_info(
"Retries: %d/%d %s: %0.6f tolerance: %0.6f" % (
self.current_retry, self.max_retries, self.value_label,
error, self.retry_tolerance))
if self.check_increase(error):
raise self.gcode.error("Retries aborting: %s is increasing. %s"
% (self.value_label, self.error_msg_extra))
if error <= self.retry_tolerance:
return "done"
self.current_retry += 1