Skip to content

Commit

Permalink
Macros: fix bug multiplying macro travel velocity limit by 60
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikkel Schmidt committed Feb 14, 2025
1 parent 4f409db commit c0617cc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion configuration/macros/util.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ gcode:

[gcode_macro SET_MACRO_TRAVEL_SETTINGS]
gcode:
{% set speed = printer["gcode_macro RatOS"].macro_travel_speed|float * 60 %}
{% set speed = printer["gcode_macro RatOS"].macro_travel_speed|float %}
{% set accel = printer["gcode_macro RatOS"].macro_travel_accel %}
SET_VELOCITY_LIMIT ACCEL={accel} MINIMUM_CRUISE_RATIO=0.5 VELOCITY={speed} SQUARE_CORNER_VELOCITY={5}
DEBUG_ECHO PREFIX="SET_MACRO_TRAVEL_SETTINGS" MSG="Macro travel settings set. {accel} accel, {speed} velocity"
Expand Down
3 changes: 0 additions & 3 deletions configuration/z-probe/beacon.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,6 @@ gcode:
# parameters
{% set automated = true if params._AUTOMATED|default(false)|lower == 'true' else false %}

# config
{% set speed = printer["gcode_macro RatOS"].macro_travel_speed * 60 %}

# home x and y axis if not homed already
MAYBE_HOME X=True Y=True

Expand Down

0 comments on commit c0617cc

Please sign in to comment.