diff --git a/docs/changelog.md b/docs/changelog.md index a25e834d..6bf7ec0c 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -2,6 +2,7 @@ #### 2021 02 22 * Add configurable z_babystep intervals +* Add QUAD_GANTRY_LEVEL and Z_TILT_ADJUST to Homing menu * Fixed cursor issue on startup * Fixed font ratio for large, but short screens * Configurable cursor display diff --git a/ks_includes/KlipperScreen.conf b/ks_includes/KlipperScreen.conf index 69c237df..0f180087 100644 --- a/ks_includes/KlipperScreen.conf +++ b/ks_includes/KlipperScreen.conf @@ -65,6 +65,21 @@ icon: home method: printer.gcode.script params: {"script":"G28 X Y"} +[menu __main homing quad_gantry_level] +name: {{ gettext('Quad Gantry Level') }} +icon: home-z +method: printer.gcode.script +params: {"script":"QUAD_GANTRY_LEVEL"} +enable: {{ printer.quad_gantry_level is defined }} + +[menu __main homing z_tilt_adjust] +name: {{ gettext('Z Tilt Adjust') }} +icon: home-z +method: printer.gcode.script +params: {"script":"QUAD_GANTRY_LEVEL"} +enable: {{ printer.z_tilt_adjust is defined }} + + [menu __main actions move] name: {{ gettext('Move') }} icon: move @@ -85,13 +100,6 @@ name: {{ gettext('Temperature') }} icon: heat-up panel: temperature -[menu __main actions quad_gantry_level] -name: {{ gettext('Quad Gantry Level') }} -icon: home-z -method: printer.gcode.script -params: {"script":"QUAD_GANTRY_LEVEL"} -enable: {{ printer.quad_gantry_level is defined }} - [menu __main actions macros] name: {{ gettext('Macros') }} icon: custom-script diff --git a/ks_includes/printer.py b/ks_includes/printer.py index 9dba8b97..eb9e37fd 100644 --- a/ks_includes/printer.py +++ b/ks_includes/printer.py @@ -176,7 +176,7 @@ class Printer: } } - sections = ["bed_mesh","bltouch","probe","quad_gantry_level"] + sections = ["bed_mesh","bltouch","probe","quad_gantry_level","z_tilt_adjust"] for section in sections: if self.config_section_exists(section): data["printer"][section] = self.get_config_section(section).copy()