Skip to content

Commit

Permalink
Update main_extruder_2.cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
frylock34 committed Jan 9, 2024
1 parent 6f1da29 commit b82d1c1
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions stereotech_config/5xx/main_extruder_2.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,6 @@ gcode:
G0 X10 Y2 F3600
{% endif %}
{% endif %}
SAVE_EXTRUDER_FLOW
ACTIVATE_EXTRUDER extruder=extruder
RESTORE_EXTRUDER_FLOW EXTRUDER=extruder
SET_WCS WCS={current_wcs}
M117

[gcode_macro SAVE_EXTRUDER_FLOW]
gcode:
{% set current_ex = printer.toolhead.extruder %}
{% set index_ex = '0' if current_ex == 'extruder' else current_ex[8]|int %}
{% set current_ex_factor = printer.gcode_move.extrude_factor|float %}
SET_GCODE_VARIABLE MACRO=T{index_ex} VARIABLE=flow VALUE={current_ex_factor * 100.0}

[gcode_macro RESTORE_EXTRUDER_FLOW]
gcode:
{% set extruder = params.EXTRUDER|default('extruder') %}
{% set index_ex = '0' if extruder == 'extruder' else extruder[8]|int %}
M221 S{printer["gcode_macro T" ~ index_ex].flow}

0 comments on commit b82d1c1

Please sign in to comment.