diff --git a/docs/G-Codes.md b/docs/G-Codes.md index 94a6e9a9878d..d44017deac9c 100644 --- a/docs/G-Codes.md +++ b/docs/G-Codes.md @@ -1067,6 +1067,21 @@ CYCLE_TIME parameter is not stored between SET_PIN commands (any SET_PIN command without an explicit CYCLE_TIME parameter will use the `cycle_time` specified in the pwm_cycle_time config section). +### [quad_gantry_level] + +The following commands are available when the +[quad_gantry_level config section](Config_Reference.md#quad_gantry_level) +is enabled. + +#### QUAD_GANTRY_LEVEL +`QUAD_GANTRY_LEVEL [RETRIES=] [RETRY_TOLERANCE=] +[HORIZONTAL_MOVE_Z=] [=]`: This command +will probe the points specified in the config and then make +independent adjustments to each Z stepper to compensate for tilt. See +the PROBE command for details on the optional probe parameters. The +optional `RETRIES`, `RETRY_TOLERANCE`, and `HORIZONTAL_MOVE_Z` values +override those options specified in the config file. + ### [query_adc] The query_adc module is automatically loaded. @@ -1456,11 +1471,13 @@ The following commands are available when the [z_tilt config section](Config_Reference.md#z_tilt) is enabled. #### Z_TILT_ADJUST -`Z_TILT_ADJUST [HORIZONTAL_MOVE_Z=] [=]`: This -command will probe the points specified in the config and then make independent -adjustments to each Z stepper to compensate for tilt. See the PROBE command for -details on the optional probe parameters. The optional `HORIZONTAL_MOVE_Z` -value overrides the `horizontal_move_z` option specified in the config file. +`Z_TILT_ADJUST [RETRIES=] [RETRY_TOLERANCE=] +[HORIZONTAL_MOVE_Z=] [=]`: This command +will probe the points specified in the config and then make +independent adjustments to each Z stepper to compensate for tilt. See +the PROBE command for details on the optional probe parameters. The +optional `RETRIES`, `RETRY_TOLERANCE`, and `HORIZONTAL_MOVE_Z` values +override those options specified in the config file. ### [temperature_probe] diff --git a/klippy/extras/z_tilt.py b/klippy/extras/z_tilt.py index 49bafc4a38b2..9f5ea0b9c50d 100644 --- a/klippy/extras/z_tilt.py +++ b/klippy/extras/z_tilt.py @@ -108,7 +108,7 @@ def check_increase(self, error): return self.increasing > 1 def check_retry(self, z_positions): if self.max_retries == 0: - return + return "done" error = round(max(z_positions) - min(z_positions),6) self.gcode.respond_info( "Retries: %d/%d %s: %0.6f tolerance: %0.6f" % (