Hopefully fixed the GOTO_CENTER macro

This commit is contained in:
Zach Schimke 2021-08-20 09:55:08 -07:00
parent 5cff085395
commit 3f1c4f24e2
1 changed files with 2 additions and 5 deletions

View File

@ -85,11 +85,8 @@ gcode:
[gcode_macro GOTO_CENTER]
gcode:
##### Get Boundaries #####
{% set max_x = printer.toolhead.axis_maximum.x|float %}
{% set max_y = printer.toolhead.axis_maximum.y|float %}
{% set max_z = printer.toolhead.axis_maximum.z|float %}
{% set mid_x = max_x / 2 %}
{% set mid_y = max_y / 2 %}
{% set mid_x = (printer.toolhead.axis_maximum.z|float / 2)|float %}
{% set mid_y = (printer.toolhead.axis_maximum.z|float / 2)|float %}
LIFT_Z
G90