Skip to content

Commit

Permalink
Update timelapse.cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
zellneralex committed Jan 26, 2024
1 parent 8ce698d commit c8eaf54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions klipper_macro/timelapse.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit c8eaf54

Please sign in to comment.