diff options
Diffstat (limited to 'src/Movement/RawMove.cpp')
-rw-r--r-- | src/Movement/RawMove.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/Movement/RawMove.cpp b/src/Movement/RawMove.cpp index 368f0b8f..a2e43fd3 100644 --- a/src/Movement/RawMove.cpp +++ b/src/Movement/RawMove.cpp @@ -280,13 +280,14 @@ AxesBitmap MovementState::AllocateAxes(AxesBitmap axes, ParameterLettersBitmap a return unAvailable; } -// Save the coordinates of axes we own to lastKnownMachinePositions -void MovementState::SaveOwnAxisCoordinates() const noexcept +// Fetch and save the coordinates of axes we own to lastKnownMachinePositions, also copy them to our own coordinates in case we just did a homing move +void MovementState::SaveOwnAxisCoordinates() noexcept { - reprap.GetMove().GetPartialMachinePosition(lastKnownMachinePositions, GetAxesAndExtrudersOwned(), msNumber); + reprap.GetMove().GetPartialMachinePosition(lastKnownMachinePositions, axesAndExtrudersOwned, msNumber); + memcpyf(coords, lastKnownMachinePositions, MaxAxesPlusExtruders); + reprap.GetMove().InverseAxisAndBedTransform(coords, currentTool); } - void AsyncMove::SetDefaults() noexcept { for (float& f : movements) |