From b82d1c1ce6a8ed00738525105e428df48d2e3850 Mon Sep 17 00:00:00 2001 From: Ilya Gushchin Date: Tue, 9 Jan 2024 14:22:35 +0300 Subject: [PATCH] Update main_extruder_2.cfg --- stereotech_config/5xx/main_extruder_2.cfg | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/stereotech_config/5xx/main_extruder_2.cfg b/stereotech_config/5xx/main_extruder_2.cfg index a7e18484e25b..6d70948df83f 100644 --- a/stereotech_config/5xx/main_extruder_2.cfg +++ b/stereotech_config/5xx/main_extruder_2.cfg @@ -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}