From c8eaf54a81ee1c3bf064d84e9b793d3229439963 Mon Sep 17 00:00:00 2001 From: zellneralex <37265689+zellneralex@users.noreply.github.com> Date: Fri, 26 Jan 2024 17:58:07 +0100 Subject: [PATCH] Update timelapse.cfg --- klipper_macro/timelapse.cfg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/klipper_macro/timelapse.cfg b/klipper_macro/timelapse.cfg index 4224605..24cce90 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 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 min = printer.toolhead.axis_minimum if printer.configfile.settings.printer.kinematics is not 'none' else -9999.9 %} + {% set max = printer.toolhead.axis_maximum if 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),