Selective QGL

This commit is contained in:
Siwat Sirichai 2024-01-22 19:50:08 +07:00
parent e35b543ee9
commit 2311395fe8
1 changed files with 13 additions and 5 deletions

View File

@ -501,8 +501,16 @@ gcode:
{% if params.QGL is defined and params.QGL == "NO" %} {% if params.QGL is defined and params.QGL == "NO" %}
G28 G28
{% else %} {% else %}
; Is QGL applied already?
{% if printer.quad_gantry_level.applied %}
; QGL is applied, so just home the axis
G28
PARK_NOZZLE_REAR
{% else %}
; QGL is not applied, so home the axis and apply QGL and calibrate the mesh
G32 G32
{% endif %} {% endif %}
{% endif %}
G1 Z20 F3000 ; move nozzle away from bed G1 Z20 F3000 ; move nozzle away from bed
M109 S{ params.EXTRUDER | float } ; wait for nozzle to reach temperture M109 S{ params.EXTRUDER | float } ; wait for nozzle to reach temperture
SET_LED LED="hotend_rgb" RED=1 GREEN=0 BLUE=1 SYNC=0 TRANSMIT=1 ; turn on hotend LED SET_LED LED="hotend_rgb" RED=1 GREEN=0 BLUE=1 SYNC=0 TRANSMIT=1 ; turn on hotend LED