mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-06-26 08:50:34 +00:00
🩹 Fix BLTouch stow in homeaxis(Z)
This commit is contained in:
parent
25e5a3597f
commit
c4aa39dc86
1 changed files with 8 additions and 8 deletions
|
@ -2153,12 +2153,12 @@ void prepare_line_to_destination() {
|
||||||
if (DEBUGGING(LEVELING)) DEBUG_ECHOLNPGM("Home Fast: ", move_length, "mm");
|
if (DEBUGGING(LEVELING)) DEBUG_ECHOLNPGM("Home Fast: ", move_length, "mm");
|
||||||
do_homing_move(axis, move_length, 0.0, !use_probe_bump);
|
do_homing_move(axis, move_length, 0.0, !use_probe_bump);
|
||||||
|
|
||||||
#if BOTH(HOMING_Z_WITH_PROBE, BLTOUCH)
|
|
||||||
if (axis == Z_AXIS && !bltouch.high_speed_mode) bltouch.stow(); // Intermediate STOW (in LOW SPEED MODE)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// If a second homing move is configured...
|
// If a second homing move is configured...
|
||||||
if (bump) {
|
if (bump) {
|
||||||
|
#if BOTH(HOMING_Z_WITH_PROBE, BLTOUCH)
|
||||||
|
if (axis == Z_AXIS && !bltouch.high_speed_mode) bltouch.stow(); // Intermediate STOW (in LOW SPEED MODE)
|
||||||
|
#endif
|
||||||
|
|
||||||
// Move away from the endstop by the axis HOMING_BUMP_MM
|
// Move away from the endstop by the axis HOMING_BUMP_MM
|
||||||
if (DEBUGGING(LEVELING)) DEBUG_ECHOLNPGM("Move Away: ", -bump, "mm");
|
if (DEBUGGING(LEVELING)) DEBUG_ECHOLNPGM("Move Away: ", -bump, "mm");
|
||||||
do_homing_move(axis, -bump, TERN(HOMING_Z_WITH_PROBE, (axis == Z_AXIS ? z_probe_fast_mm_s : 0), 0), false);
|
do_homing_move(axis, -bump, TERN(HOMING_Z_WITH_PROBE, (axis == Z_AXIS ? z_probe_fast_mm_s : 0), 0), false);
|
||||||
|
@ -2209,12 +2209,12 @@ void prepare_line_to_destination() {
|
||||||
const float rebump = bump * 2;
|
const float rebump = bump * 2;
|
||||||
if (DEBUGGING(LEVELING)) DEBUG_ECHOLNPGM("Re-bump: ", rebump, "mm");
|
if (DEBUGGING(LEVELING)) DEBUG_ECHOLNPGM("Re-bump: ", rebump, "mm");
|
||||||
do_homing_move(axis, rebump, get_homing_bump_feedrate(axis), true);
|
do_homing_move(axis, rebump, get_homing_bump_feedrate(axis), true);
|
||||||
|
|
||||||
#if BOTH(HOMING_Z_WITH_PROBE, BLTOUCH)
|
|
||||||
if (axis == Z_AXIS) bltouch.stow(); // The final STOW
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if BOTH(HOMING_Z_WITH_PROBE, BLTOUCH)
|
||||||
|
if (axis == Z_AXIS) bltouch.stow(); // The final STOW
|
||||||
|
#endif
|
||||||
|
|
||||||
#if HAS_EXTRA_ENDSTOPS
|
#if HAS_EXTRA_ENDSTOPS
|
||||||
const bool pos_dir = axis_home_dir > 0;
|
const bool pos_dir = axis_home_dir > 0;
|
||||||
#if ENABLED(X_DUAL_ENDSTOPS)
|
#if ENABLED(X_DUAL_ENDSTOPS)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue