Fix endstops enable behavior during probing

Fix a bug introduced in #9582
This commit is contained in:
Scott Lahteine 2018-11-04 20:51:54 -06:00
parent 07a0822ebe
commit 5182eaf661
2 changed files with 3 additions and 4 deletions

View File

@ -543,15 +543,14 @@ static bool do_probe_move(const float z, const float fr_mm_s) {
tmc_stallguard(stepperY);
#endif
tmc_stallguard(stepperZ);
endstops.enable(true);
#endif
#if QUIET_PROBING
probing_pause(true);
#endif
endstops.enable(true);
// Move down until probe triggered
// Move down until the probe is triggered
do_blocking_move_to_z(z, fr_mm_s);
// Check to see if the probe was triggered
@ -575,6 +574,7 @@ static bool do_probe_move(const float z, const float fr_mm_s) {
// Re-enable stealthChop if used. Disable diag1 pin on driver.
#if ENABLED(SENSORLESS_PROBING)
endstops.not_homing();
#if ENABLED(DELTA)
tmc_stallguard(stepperX, false);
tmc_stallguard(stepperY, false);

View File

@ -2098,7 +2098,6 @@ void Stepper::init() {
ENABLE_STEPPER_DRIVER_INTERRUPT();
endstops.enable(true); // Start with endstops active. After homing they can be disabled
sei();
set_directions(); // Init directions to last_direction_bits = 0 Keeps Z from being reversed
}