Skip to content

Commit

Permalink
fix dictonary
Browse files Browse the repository at this point in the history
  • Loading branch information
zellneralex committed Jan 26, 2024
1 parent c8eaf54 commit 876a22c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions klipper_macro/timelapse.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,10 @@ 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 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 min = printer.toolhead.axis_minimum if printer.configfile.settings.printer.kinematics != 'none'
else {'x': -9999.9, 'y': -9999.9, 'z': -9999.9 } %}
{% set max = printer.toolhead.axis_maximum if printer.configfile.settings.printer.kinematics != 'none'
else {'x': 9999.9, 'y': 9999.9, 'z': 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),
Expand Down

0 comments on commit 876a22c

Please sign in to comment.