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>2021-08-09 12:28:06 +0300
committerDavid Crocker <dcrocker@eschertech.com>2021-08-09 12:28:06 +0300
commit53ce4b3eb1acbf0dcecaeeae6d4cc4d18dc7fb2d (patch)
treef5bf21919cac25d33d0e23268923ca0c9f470455 /src/GCodes/GCodes.h
parentf59d7cc1a162a057d9523147d838a36d93ae9c49 (diff)
More work on embedded file support
Diffstat (limited to 'src/GCodes/GCodes.h')
-rw-r--r--src/GCodes/GCodes.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/GCodes/GCodes.h b/src/GCodes/GCodes.h
index 099d642f..ff97be2c 100644
--- a/src/GCodes/GCodes.h
+++ b/src/GCodes/GCodes.h
@@ -116,7 +116,7 @@ public:
void Reset() noexcept; // Reset some parameter to defaults
bool ReadMove(RawMove& m) noexcept; // Called by the Move class to get a movement set by the last G Code
void ClearMove() noexcept;
-#if HAS_MASS_STORAGE
+#if HAS_MASS_STORAGE || HAS_EMBEDDED_FILES
bool QueueFileToPrint(const char* fileName, const StringRef& reply) noexcept; // Open a file of G Codes to run
#endif
void AbortPrint(GCodeBuffer& gb) noexcept; // Cancel any print in progress
@@ -459,7 +459,7 @@ private:
GCodeResult UpdateFirmware(GCodeBuffer& gb, const StringRef &reply) THROWS(GCodeException); // Handle M997
GCodeResult SendI2c(GCodeBuffer& gb, const StringRef &reply) THROWS(GCodeException); // Handle M260
GCodeResult ReceiveI2c(GCodeBuffer& gb, const StringRef &reply) THROWS(GCodeException); // Handle M261
-#if HAS_MASS_STORAGE || HAS_LINUX_INTERFACE
+#if HAS_MASS_STORAGE || HAS_LINUX_INTERFACE || HAS_EMBEDDED_FILES
GCodeResult SimulateFile(GCodeBuffer& gb, const StringRef &reply, const StringRef& file, bool updateFile) THROWS(GCodeException); // Handle M37 to simulate a whole file
GCodeResult ChangeSimulationMode(GCodeBuffer& gb, const StringRef &reply, uint32_t newSimulationMode) THROWS(GCodeException); // Handle M37 to change the simulation mode
#endif
@@ -596,7 +596,7 @@ private:
unsigned int currentCoordinateSystem; // This is zero-based, where as the P parameter in the G10 command is 1-based
float workplaceCoordinates[NumCoordinateSystems][MaxAxes]; // Workplace coordinate offsets
-#if HAS_MASS_STORAGE
+#if HAS_MASS_STORAGE || HAS_EMBEDDED_FILES
FileData fileToPrint; // The next file to print
#endif
#if HAS_MASS_STORAGE || HAS_LINUX_INTERFACE || HAS_EMBEDDED_FILES
@@ -658,7 +658,7 @@ private:
// Code queue
GCodeQueue *codeQueue; // Stores certain codes for deferred execution
-#if HAS_MASS_STORAGE
+#if HAS_MASS_STORAGE || HAS_EMBEDDED_FILES
// SHA1 hashing
FileStore *fileBeingHashed;
SHA1Context hash;