Skip to content

Commit

Permalink
✨ support all M900 params
Browse files Browse the repository at this point in the history
  • Loading branch information
dudeofawesome committed Jan 16, 2022
1 parent 12eee55 commit 1c1c350
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions macros/m900.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ description:
(SET_PRESSURE_ADVANCE) commands. For use with Marlin's linear advance
calibration: https://marlinfw.org/tools/lin_advance/k-factor.html"
gcode:
# Parameters
{% set k_val = params.K|float %}
SET_PRESSURE_ADVANCE ADVANCE={k_val}
{% if 'K' in params and 'E' in params %}
SET_PRESSURE_ADVANCE EXTRUDER={params.E} ADVANCE={params.K}
{% elif 'K' in params %}
SET_PRESSURE_ADVANCE ADVANCE={params.K}
{% else %}
{action_respond_info("K not specified")}
{% endif %}

0 comments on commit 1c1c350

Please sign in to comment.