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>2019-11-12 13:18:08 +0300
committerDavid Crocker <dcrocker@eschertech.com>2019-11-12 13:18:08 +0300
commit54259da8a68b184f8c1bd5b91338aa71fa5492f4 (patch)
tree0afc7816fbb9f046d4d564c93221a42546fba697 /src/Storage/FileInfoParser.cpp
parent274f685a403fb32e3027a6a2380fdef1e55dfe50 (diff)
More work to make it safe to use the SAME70 cache
MassStorateg is now a namespace, in preparation for moving some of its data to non-cached memory SBC transfer buffers moved to non-cached memory
Diffstat (limited to 'src/Storage/FileInfoParser.cpp')
-rw-r--r--src/Storage/FileInfoParser.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Storage/FileInfoParser.cpp b/src/Storage/FileInfoParser.cpp
index 4a8fe127..d7d89cc9 100644
--- a/src/Storage/FileInfoParser.cpp
+++ b/src/Storage/FileInfoParser.cpp
@@ -62,13 +62,13 @@ bool FileInfoParser::GetFileInfo(const char *filePath, GCodeFileInfo& info, bool
{
// See if we can access the file
// Webserver may call rr_fileinfo for a directory, check this case here
- if (reprap.GetPlatform().GetMassStorage()->DirectoryExists(filePath))
+ if (MassStorage::DirectoryExists(filePath))
{
info.isValid = false;
return true;
}
- fileBeingParsed = reprap.GetPlatform().GetMassStorage()->OpenFile(filePath, OpenMode::read, 0);
+ fileBeingParsed = MassStorage::OpenFile(filePath, OpenMode::read, 0);
if (fileBeingParsed == nullptr)
{
// Something went wrong - we cannot open it
@@ -83,7 +83,7 @@ bool FileInfoParser::GetFileInfo(const char *filePath, GCodeFileInfo& info, bool
// Set up the info struct
parsedFileInfo.Init();
parsedFileInfo.fileSize = fileBeingParsed->Length();
- parsedFileInfo.lastModifiedTime = reprap.GetPlatform().GetMassStorage()->GetLastModifiedTime(filePath);
+ parsedFileInfo.lastModifiedTime = MassStorage::GetLastModifiedTime(filePath);
parsedFileInfo.isValid = true;
// Record some debug values here