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-12-08 18:00:16 +0300
committerDavid Crocker <dcrocker@eschertech.com>2020-12-08 18:00:16 +0300
commit18e0c36b8f8a2181e6ca9122a6a138fd1b047466 (patch)
treebd0adb3badaba152fcf82ba7d3230bae6742cb6b /src/Hardware/NonVolatileMemory.cpp
parent6cd02ea698d62e030c214cde9868743454632d7a (diff)
Changed flash_write_user_signature to avoid using a static 512b buffer
Diffstat (limited to 'src/Hardware/NonVolatileMemory.cpp')
-rw-r--r--src/Hardware/NonVolatileMemory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Hardware/NonVolatileMemory.cpp b/src/Hardware/NonVolatileMemory.cpp
index f5753d2a..72b91bd5 100644
--- a/src/Hardware/NonVolatileMemory.cpp
+++ b/src/Hardware/NonVolatileMemory.cpp
@@ -75,7 +75,7 @@ void NonVolatileMemory::EnsureWritten() noexcept
if (state == NvmState::writeNeeded)
{
# if SAM4E || SAM4S || SAME70
- flash_write_user_signature(&buffer, sizeof(buffer)/sizeof(uint32_t));
+ flash_write_user_signature(reinterpret_cast<const uint32_t*>(&buffer));
# elif defined(__LPC17xx__)
LPC_WriteSoftwareResetData(slot, buffer, sizeof(buffer));
# else