Avoid detecting StallGuard in StealtMode

pull/168/head
D.R.racer 2022-05-12 08:35:27 +02:00
parent f2e2859465
commit a707616035
1 changed files with 2 additions and 1 deletions

View File

@ -22,6 +22,7 @@ void MovableBase::PlanHome() {
MovableBase::OperationResult MovableBase::InitMovement() {
if (motion.InitAxis(axis)) {
mm::motion.StallGuardReset(axis);
PrepareMoveToPlannedSlot();
state = Moving;
return OperationResult::Accepted;
@ -36,7 +37,7 @@ void MovableBase::PerformMove() {
// TMC2130 entered some error state, the planned move couldn't have been finished - result of operation is Failed
tmcErrorFlags = mm::motion.DriverForAxis(axis).GetErrorFlags(); // save the failed state
state = TMCFailed;
} else if (mm::motion.StallGuard(axis) && SupportsHoming()) {
} else if (SupportsHoming() && (!mg::globals.MotorsStealth()) && mm::motion.StallGuard(axis)) {
// Axis stalled while moving - dangerous especially with the Selector
// Checked only for axes which support homing (because we plan a homing move after the error is resolved to regain precise position)
mm::motion.StallGuardReset(axis);