Skip to content

Commit

Permalink
Avoid premature endstop trigger in raise_above_z from a cold start
Browse files Browse the repository at this point in the history
In raise_z_above, power Z steppers in normal mode to overcome initial
load. This avoids triggering the endstop right at the start if the
Z axis was started directly in low-power mode.
  • Loading branch information
wavexx committed Apr 24, 2019
1 parent 2d645f5 commit 0ca5748
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Firmware/Marlin_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2127,6 +2127,9 @@ void raise_z_above(float target)
}
else
{
// ensure Z is powered in normal mode to overcome initial load
enable_z();

// rely on crashguard to limit damage
bool z_endstop_enabled = enable_z_endstop(true);
#ifdef TMC2130
Expand Down

0 comments on commit 0ca5748

Please sign in to comment.