Cleanup in misc-macros.cfg. Adjusted calibration.cfg to work dynamically.

This commit is contained in:
Bassam Husain
2023-07-01 00:51:59 -04:00
parent 82c02bbdbf
commit d6f03f7a2c
2 changed files with 9 additions and 7 deletions

View File

@@ -1,15 +1,19 @@
[gcode_macro PID_TEST_BED]
gcode:
{% set max_x = printer.configfile.config["stepper_x"]["position_max"]|float %}
{% set max_y = printer.configfile.config["stepper_y"]["position_max"]|float %}
G28
G90
G1 X111 Y111 Z40 F6000
G1 X{max_x/2} Y{max_y/2} Z40 F6000
PID_CALIBRATE HEATER=heater_bed TARGET=70
[gcode_macro PID_TEST_HOTEND]
gcode:
{% set max_x = printer.configfile.config["stepper_x"]["position_max"]|float %}
{% set max_y = printer.configfile.config["stepper_y"]["position_max"]|float %}
G28
G90
G1 X111 Y111 Z10 F6000
G1 X{max_x/2} Y{max_y/2} Z10 F6000
M106 S64
PID_CALIBRATE HEATER=extruder TARGET=245