mirror of https://github.com/Desuuuu/klipper.git
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 <Nils.Friedchen@googlemail.com>
This commit is contained in:
parent
7605244fa0
commit
2b553a8108
|
@ -320,9 +320,9 @@
|
||||||
# The default is 0.0mm.
|
# The default is 0.0mm.
|
||||||
#z_hop_speed: 20.0
|
#z_hop_speed: 20.0
|
||||||
# Speed at which the Z axis is lifted prior to homing. The default is 20mm/s.
|
# 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.
|
# 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
|
# Homing override. One may use this mechanism to run a series of
|
||||||
|
|
|
@ -19,7 +19,7 @@ class SafeZHoming:
|
||||||
self.z_hop_speed = config.getfloat('z_hop_speed', 15., above=0.)
|
self.z_hop_speed = config.getfloat('z_hop_speed', 15., above=0.)
|
||||||
self.max_z = config.getsection('stepper_z').getfloat('position_max')
|
self.max_z = config.getsection('stepper_z').getfloat('position_max')
|
||||||
self.speed = config.getfloat('speed', 50.0, above=0.)
|
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 = self.printer.lookup_object('gcode')
|
||||||
self.gcode.register_command("G28", None)
|
self.gcode.register_command("G28", None)
|
||||||
self.gcode.register_command("G28", self.cmd_G28)
|
self.gcode.register_command("G28", self.cmd_G28)
|
||||||
|
|
Loading…
Reference in New Issue