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-04-25 20:33:30 +0300
committerDavid Crocker <dcrocker@eschertech.com>2020-04-25 20:33:30 +0300
commit59b942eae8cca6762a6033d7115ee2663a2dd395 (patch)
tree1ad823532d46c5000bc6bba422442b69edff288a /src/Storage/FileStore.cpp
parent05154ccc07c71d37699769e7f8f6e70c52702a6a (diff)
Removed 5-point bed compensation, added longest SD read time
Removed support for 5-point bed compensation Added a separate diagnostic report section for storage Changed SD card longestWriteTime to be the actual block transfer time, ignoring CRC calculations and delays between retries Added SD card longestReadTime
Diffstat (limited to 'src/Storage/FileStore.cpp')
-rw-r--r--src/Storage/FileStore.cpp22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/Storage/FileStore.cpp b/src/Storage/FileStore.cpp
index a59e2321..ec2a43d5 100644
--- a/src/Storage/FileStore.cpp
+++ b/src/Storage/FileStore.cpp
@@ -11,8 +11,6 @@
#include "Libraries/Fatfs/diskio.h"
#include "Movement/StepTimer.h"
-uint32_t FileStore::longestWriteTime = 0;
-
FileStore::FileStore() noexcept : writeBuffer(nullptr)
{
Init();
@@ -342,17 +340,11 @@ int FileStore::ReadLine(char* buf, size_t nBytes) noexcept
FRESULT FileStore::Store(const char *s, size_t len, size_t *bytesWritten) noexcept
{
- uint32_t time = StepTimer::GetTimerTicks();
if (calcCrc)
{
crc.Update(s, len);
}
const FRESULT writeStatus = f_write(&file, s, len, bytesWritten);
- time = StepTimer::GetTimerTicks() - time;
- if (time > longestWriteTime)
- {
- longestWriteTime = time;
- }
return writeStatus;
}
@@ -479,20 +471,6 @@ bool FileStore::Truncate() noexcept
}
}
-// Return the file write time in milliseconds, and clear it
-float FileStore::GetAndClearLongestWriteTime() noexcept
-{
- const float ret = (float)longestWriteTime * StepTimer::StepClocksToMillis;
- longestWriteTime = 0;
- return ret;
-}
-
-// Return the highest SD card retry count that resulted in a successful transfer
-unsigned int FileStore::GetAndClearMaxRetryCount() noexcept
-{
- return DiskioGetAndClearMaxRetryCount();
-}
-
// Return true if the passed file is the same as ours
bool FileStore::IsSameFile(const FIL& otherFile) const noexcept
{