diff options
author | David Crocker <dcrocker@eschertech.com> | 2020-11-06 14:17:48 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2020-11-06 14:17:48 +0300 |
commit | 264318bb0c7e0da3e56144224e33ec90e2a27693 (patch) | |
tree | 6f20d4a4384b0e9ee42bf18b927d21bb3176abe7 /src/GCodes/GCodes4.cpp | |
parent | 60eb64884930a807d7eee577770f6b1156872413 (diff) |
Added memcpyf and memcpyi32, renamed memcpy32 to memcpyu32
Diffstat (limited to 'src/GCodes/GCodes4.cpp')
-rw-r--r-- | src/GCodes/GCodes4.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/GCodes/GCodes4.cpp b/src/GCodes/GCodes4.cpp index 7ec9490b..ccc371db 100644 --- a/src/GCodes/GCodes4.cpp +++ b/src/GCodes/GCodes4.cpp @@ -960,7 +960,7 @@ void GCodes::RunStateMachine(GCodeBuffer& gb, const StringRef& reply) noexcept // Find the coordinates of the Z probe to pass to SetZeroHeightError float tempCoords[MaxAxes]; - memcpy(tempCoords, moveBuffer.coords, sizeof(tempCoords)); + memcpyf(tempCoords, moveBuffer.coords, ARRAY_SIZE(tempCoords)); tempCoords[X_AXIS] += zp->GetXOffset(); tempCoords[Y_AXIS] += zp->GetYOffset(); reprap.GetMove().SetZeroHeightError(tempCoords); @@ -1044,7 +1044,7 @@ void GCodes::RunStateMachine(GCodeBuffer& gb, const StringRef& reply) noexcept // Find the coordinates of the Z probe to pass to SetZeroHeightError float tempCoords[MaxAxes]; - memcpy(tempCoords, moveBuffer.coords, sizeof(tempCoords)); + memcpyf(tempCoords, moveBuffer.coords, ARRAY_SIZE(tempCoords)); tempCoords[X_AXIS] += zp->GetXOffset(); tempCoords[Y_AXIS] += zp->GetYOffset(); reprap.GetMove().SetZeroHeightError(tempCoords); |