You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/GCodes/GCodes.h
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -366,6 +366,7 @@ class GCodes
366
366
#if SUPPORT_ASYNC_MOVES
367
367
voidUnlockMovementFrom(const GCodeBuffer& gb, MovementSystemNumber firstMsNumber) noexcept; // Release movement locks greater or equal to than the specified one
368
368
#endif
369
+
boolWaitForEndstopOrProbingMoveToFinish(GCodeBuffer& gb) noexcept; // Wait for movement to stop after performing a move that may terminate early
369
370
370
371
voidSetInitialAxisAndDrivePositions() noexcept; // Called at initialisation and when new axes are added
371
372
voidAdjustEndpoint(size_t drive, float ratio) constnoexcept; // Adjust an endpoint following a change to steps/mm
if ( LockCurrentMovementSystemAndWaitForStandstill(gb) // movement should already be locked, but we need to wait for standstill and fetch the current position
54
-
#if SUPPORT_CAN_EXPANSION
55
-
&& CanMotion::RevertStoppedDrivers()
56
-
#endif
57
-
)
63
+
if (WaitForEndstopOrProbingMoveToFinish(gb)) // movement should already be locked, but we need to wait for standstill and fetch the current position
58
64
{
59
65
// Check whether we need to action any endstops
60
66
if (ms.axesToHome.IsNonEmpty()) // check whether we made any G1 H1 moves and need to set axis positions
0 commit comments