From 2c6f2d7533e7466b709b9382e2f91fe4ae6f6c99 Mon Sep 17 00:00:00 2001 From: "D.R.racer" Date: Wed, 19 Oct 2022 12:04:16 +0200 Subject: [PATCH] Only set new SGTHRS when planning a Homing move (not regular moves) --- src/modules/movable_base.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/modules/movable_base.cpp b/src/modules/movable_base.cpp index de2fb96..d6ff3a6 100644 --- a/src/modules/movable_base.cpp +++ b/src/modules/movable_base.cpp @@ -11,7 +11,7 @@ void MovableBase::PlanHome() { // switch to normal mode on this axis - // Update StallGuard threshold + // Update StallGuard threshold only when planning a homing move mm::motion.PlanStallGuardThreshold(axis, mg::globals.StallGuardThreshold(axis)); mm::motion.InitAxis(axis); mm::motion.SetMode(axis, mm::Normal); @@ -24,7 +24,6 @@ void MovableBase::PlanHome() { } MovableBase::OperationResult MovableBase::InitMovement() { - mm::motion.PlanStallGuardThreshold(axis, mg::globals.StallGuardThreshold(axis)); if (motion.InitAxis(axis)) { return InitMovementNoReinitAxis(); } else {