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>2018-04-01 13:45:55 +0300
committerDavid Crocker <dcrocker@eschertech.com>2018-04-01 13:45:55 +0300
commit4d151a5d02a8bca3810e4a75bf225136548fa1ab (patch)
treec81234e4e1ad675310272c6ffaf74a94f9ac6438 /src/Storage/MassStorage.h
parentde270d2a00fd83cc3961a749432bff940601f1dd (diff)
More RTOS work
Movd the file info parser out of PrintManager into a separate class within Storage and made it thread safe Added "Off" status for DWC and PanelDue Fixed bug with using G1 S1 Ennn on a delta printer
Diffstat (limited to 'src/Storage/MassStorage.h')
-rw-r--r--src/Storage/MassStorage.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Storage/MassStorage.h b/src/Storage/MassStorage.h
index b19c9c2a..e73716f3 100644
--- a/src/Storage/MassStorage.h
+++ b/src/Storage/MassStorage.h
@@ -7,6 +7,8 @@
#include "Libraries/Fatfs/ff.h"
#include "GCodes/GCodeResult.h"
#include "FileStore.h"
+#include "FileInfoParser.h"
+
#include <ctime>
#include "RTOSIface.h"
@@ -50,6 +52,7 @@ public:
unsigned int GetNumFreeFiles() const;
void Spin();
MutexHandle GetVolumeMutexHandle(size_t vol) const { return info[vol].volMutexHandle; }
+ bool GetFileInfo(const char *directory, const char *fileName, GCodeFileInfo& info, bool quitEarly) { return infoParser.GetFileInfo(directory, fileName, info, quitEarly); }
enum class InfoResult : uint8_t
{
@@ -102,6 +105,7 @@ private:
MutexStorage fsMutexStorage;
MutexStorage dirMutexStorage;
+ FileInfoParser infoParser;
DIR findDir;
FileWriteBuffer *freeWriteBuffers;
FileStore files[MAX_FILES];