Skip to content

Commit

Permalink
Ztilt as variable for single stepper printers
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerome committed Sep 2, 2021
1 parent 18fab7f commit 5c4d709
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ gcode:
# wait for bed temp
M190 S{BED_TEMP}
# Home + Z_Tilt
{% if printer.z_tilt.applied is false %}
Z_TILT_ADJUST
{% endif %}
{% if printer["gcode_macro _ztilt"].ztilting|int == 1 %}
{% if printer.z_tilt.applied is false %}
Z_TILT_ADJUST
{% endif %}
{% endif %}
{% if printer.bed_mesh.profile_name == "" %}
G80
{% endif %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ gcode:
# wait for bed temp
M190 S{BED_TEMP}
# Z_Tilt + mesh
{% if printer["gcode_macro _stepper_type"].tmc2209|int == 1 %}
{% if printer["gcode_macro _ztilt"].ztilting|int == 1 %}
{% if printer.z_tilt.applied is false %}
Z_TILT_ADJUST
{% endif %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ timeout: 1800
variable_tmc2209: 1
gcode:

[gcode_macro _ztilt]
variable_ztilting: 1
gcode:

#####################################################################
# Pi Temp Sensor
#####################################################################
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ timeout: 1800
variable_tmc2209: 0
gcode:

[gcode_macro _ztilt]
variable_ztilting: 0
gcode:

#####################################################################
# Pi Temp Sensor
#####################################################################
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ timeout: 1800
variable_tmc2209: 1
gcode:

[gcode_macro _ztilt]
variable_ztilting: 1
gcode:

#####################################################################
# Pi Temp Sensor
#####################################################################
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ timeout: 1800
variable_tmc2209: 1
gcode:

[gcode_macro _ztilt]
variable_ztilting: 1
gcode:

#####################################################################
# Pi Temp Sensor
#####################################################################
Expand Down

0 comments on commit 5c4d709

Please sign in to comment.