From 2b553a81084bea1584df4b6f82e89bc560031475 Mon Sep 17 00:00:00 2001 From: Master92 Date: Tue, 1 Oct 2019 15:07:21 +0200 Subject: [PATCH] safe_z_home: Fix unintended change in default behavior PR #1970 introduced a new parameter, controlling the default behavior of the safe_z_home-module. To avoid unexpected changes, the default of the move_to_previous is now defaulted to False. Signed-off-by: Nils Friedchen --- config/example-extras.cfg | 4 ++-- klippy/extras/safe_z_home.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/example-extras.cfg b/config/example-extras.cfg index d18d777c..c595bafd 100644 --- a/config/example-extras.cfg +++ b/config/example-extras.cfg @@ -320,9 +320,9 @@ # The default is 0.0mm. #z_hop_speed: 20.0 # Speed at which the Z axis is lifted prior to homing. The default is 20mm/s. -#move_to_previous: True +#move_to_previous: False # When set to True, xy are reset to their previous positions after z homing. -# The default is True. +# The default is False. # Homing override. One may use this mechanism to run a series of diff --git a/klippy/extras/safe_z_home.py b/klippy/extras/safe_z_home.py index c3c4b165..a392535b 100644 --- a/klippy/extras/safe_z_home.py +++ b/klippy/extras/safe_z_home.py @@ -19,7 +19,7 @@ class SafeZHoming: self.z_hop_speed = config.getfloat('z_hop_speed', 15., above=0.) self.max_z = config.getsection('stepper_z').getfloat('position_max') self.speed = config.getfloat('speed', 50.0, above=0.) - self.move_to_previous = config.getboolean('move_to_previous', True) + self.move_to_previous = config.getboolean('move_to_previous', False) self.gcode = self.printer.lookup_object('gcode') self.gcode.register_command("G28", None) self.gcode.register_command("G28", self.cmd_G28)