Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Crocker <dcrocker@eschertech.com>2020-11-06 14:17:48 +0300
committerDavid Crocker <dcrocker@eschertech.com>2020-11-06 14:17:48 +0300
commit264318bb0c7e0da3e56144224e33ec90e2a27693 (patch)
tree6f20d4a4384b0e9ee42bf18b927d21bb3176abe7 /src/GCodes/GCodes4.cpp
parent60eb64884930a807d7eee577770f6b1156872413 (diff)
Added memcpyf and memcpyi32, renamed memcpy32 to memcpyu32
Diffstat (limited to 'src/GCodes/GCodes4.cpp')
-rw-r--r--src/GCodes/GCodes4.cpp4
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);