Skip to content

Commit

Permalink
remove useless seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
Jomik committed Jul 12, 2024
1 parent 1bc8a0c commit c2824a1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions macros/z_tramming.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,8 @@ gcode:
RESPOND TYPE=command MSG='{"action:prompt_text Turn the right lead screw: %02d:%02d %s" % (hours, minutes, direction)}'
RESPOND TYPE=command MSG="action:prompt_text 01:20 means 1 full turn and 20 minutes, CW = clockwise, CCW = counter-clockwise"
{% else %}
# Display seconds because getting a rotation of 0 minutes is not helpful
{% set seconds = ((variance / screw_lead * 60 * 60) % 60) | int %}
RESPOND TYPE=error MSG='{"Turn the right lead screw %02d seconds %s" % (seconds, direction)}'
RESPOND TYPE=command MSG='{"action:prompt_text Turn the right lead screw %02d seconds %s" % (seconds, direction)}'
RESPOND TYPE=error MSG='{"Turn the right lead screw %s a step or two" % (direction)}'
RESPOND TYPE=command MSG='{"action:prompt_text Turn the right lead screw %s a step or two" % (direction)}'
{% endif %}
RESPOND TYPE=command MSG="action:prompt_footer_button CANCEL|_Z_TRAMMING_CANCEL|error"
RESPOND TYPE=command MSG="action:prompt_footer_button Retry|_Z_TRAMMING_RETRY|primary"
Expand Down

0 comments on commit c2824a1

Please sign in to comment.