diff --git a/klipper_macro/timelapse.cfg b/klipper_macro/timelapse.cfg index c821f39..4224605 100644 --- a/klipper_macro/timelapse.cfg +++ b/klipper_macro/timelapse.cfg @@ -51,8 +51,8 @@ description: Set user parameters for timelapse gcode: {% set tl = printer['gcode_macro TIMELAPSE_TAKE_FRAME'] %} ##### get min and max bed size ##### - {% set min = printer.toolhead.axis_minimum %} - {% set max = printer.toolhead.axis_maximum %} + {% set min = printer.toolhead.axis_minimum printer.configfile.settings.printer.kinematics is not 'none' else -9999.9 %} + {% set max = printer.toolhead.axis_maximum printer.configfile.settings.printer.kinematics is not 'none' else 9999.9 %} {% set round_bed = True if printer.configfile.settings.printer.kinematics is in ['delta','polar','rotary_delta','winch'] else False %} {% set park = {'min' : {'x': (min.x / 1.42)|round(3) if round_bed else min.x|round(3),