diff options
Diffstat (limited to 'src/GCodes/GCodes4.cpp')
-rw-r--r-- | src/GCodes/GCodes4.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/GCodes/GCodes4.cpp b/src/GCodes/GCodes4.cpp index 293bd405..51f06764 100644 --- a/src/GCodes/GCodes4.cpp +++ b/src/GCodes/GCodes4.cpp @@ -1120,7 +1120,10 @@ void GCodes::RunStateMachine(GCodeBuffer& gb, const StringRef& reply) noexcept if (tapsDone <= 1 && !hadProbingError) { // Reset the Z axis origin according to the height error so that we can move back up to the dive height - ms.UpdateOwnedAxisCoordinate(Z_AXIS, zp->GetActualTriggerHeight()); + ms.coords[Z_AXIS] = zp->GetActualTriggerHeight(); +#if SUPPORT_ASYNC_MOVES + ms.OwnedAxisCoordinateUpdated(Z_AXIS); +#endif reprap.GetMove().SetNewPosition(ms.coords, false, gb.GetActiveQueueNumber()); // Find the coordinates of the Z probe to pass to SetZeroHeightError |