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>2022-08-01 22:30:02 +0300
committerDavid Crocker <dcrocker@eschertech.com>2022-08-01 22:30:02 +0300
commitc5ad761d14c8a1a07c344f15c57754bc276d274d (patch)
tree0dfa5179c40488eda898817c16d0976b6081c047
parentf3aa9825c67527a8ddfc2fb98c2f276e0751ac75 (diff)
Don't disable cache when reading NVram (uses updated CoreN2G)
-rw-r--r--src/Hardware/NonVolatileMemory.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/Hardware/NonVolatileMemory.cpp b/src/Hardware/NonVolatileMemory.cpp
index 2e19daab..cb6937b7 100644
--- a/src/Hardware/NonVolatileMemory.cpp
+++ b/src/Hardware/NonVolatileMemory.cpp
@@ -26,12 +26,7 @@ void NonVolatileMemory::EnsureRead() noexcept
#elif defined(__LPC17xx__)
# error //TODO
#elif SAM4E || SAM4S || SAME70
- const bool cacheEnabled = Cache::Disable();
Flash::ReadUserSignature(reinterpret_cast<uint32_t*>(&buffer), sizeof(buffer)/sizeof(uint32_t));
- if (cacheEnabled)
- {
- Cache::Enable();
- }
#else
# error Unsupported processor
#endif