diff --git a/macros/base/start_print.cfg b/macros/base/start_print.cfg index dec67f7b6..198f2baf5 100644 --- a/macros/base/start_print.cfg +++ b/macros/base/start_print.cfg @@ -30,7 +30,7 @@ gcode: {% set TOOLS_USED = params.TOOLS_USED|default("")|string %} # Check if MMU gates (used in gcode file) are availables {% set SYNC_MMU_EXTRUDER = params.SYNC_MMU_EXTRUDER|default(0)|int %} # set MMU gear motor and extruder synchronization during print TODO {% set BED_MESH_PROFILE = params.MESH|default("")|string %} # Bed mesh profile to load - {% set ADAPTIVE_PRIMELINE = params.ADAPTIVE_PRIMELINE|default(1)|int %} # Weither to do or not an adaptive prime line near the real print zone + {% set ADAPTIVE_PRIMELINE = params.ADAPTIVE_PRIMELINE|default(printer['gcode_macro _USER_VARIABLES'].prime_line_adaptive_mode)|default(1)|int %} # Place an adaptive prime line near the real print zone # Set the variables to be used in all the modules based on the slicer parameters SET_GCODE_VARIABLE MACRO=START_PRINT VARIABLE=bed_temp VALUE={BED_TEMP} diff --git a/user_templates/variables.cfg b/user_templates/variables.cfg index f2e62f2e9..ffaf0fcca 100644 --- a/user_templates/variables.cfg +++ b/user_templates/variables.cfg @@ -52,6 +52,7 @@ variable_probe_dock_margin_xy: 0, 0 variable_safe_extruder_temp: 150 ## Prime line parameters +variable_prime_line_adaptive_mode: True # using the adaptive primeline manages start point and direction automatically variable_prime_line_xy: 5, 2.5 # starting point variable_prime_line_direction: "X" # can also be set to "Y" variable_prime_line_length: 40 # length of the prime line on the bed (in mm)