Skip to content

Commit

Permalink
Update tram_z.cfg
Browse files Browse the repository at this point in the history
Your tram_z macro references the x motor settings.  I assume this is a typo?
  • Loading branch information
vertigo235 committed Feb 17, 2022
1 parent b56c4c1 commit 698c37e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Klipper_cfg/Prusa_Universal_Config_Revised/Macros/tram_z.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
gcode:
{% set TRAM_CUR = 0.3 %}
{% if printer["gcode_macro _stepper_type"].tmc2209|int == 1 %}
{% set driver_config = printer.configfile.settings['tmc2209 stepper_x'] %}
{% set driver_config = printer.configfile.settings['tmc2209 stepper_z'] %}
{% else %}
{% set driver_config = printer.configfile.settings['tmc2130 stepper_x'] %}
{% set driver_config = printer.configfile.settings['tmc2130 stepper_z'] %}
{% endif %}
{% set RUN_CUR = driver_config.run_current %}
G28
Expand All @@ -14,4 +14,4 @@ gcode:
SET_TMC_CURRENT STEPPER=stepper_z CURRENT={TRAM_CUR}
G1 Z208 F100
SET_TMC_CURRENT STEPPER=stepper_z CURRENT={RUN_CUR}
G28 Z
G28 Z

0 comments on commit 698c37e

Please sign in to comment.