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-07-31 12:30:17 +0300
committerDavid Crocker <dcrocker@eschertech.com>2021-07-31 12:30:17 +0300
commitde65e3e848ba79a1563eabea60175d9194bf1c41 (patch)
treee0663700d05702862fdd428116ec09090d9358c6 /src/GCodes/GCodes2.cpp
parentadadbb13da2c74ced1c5830fdd685e3118310dba (diff)
More work on embedded readonly file support
Diffstat (limited to 'src/GCodes/GCodes2.cpp')
-rw-r--r--src/GCodes/GCodes2.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/GCodes/GCodes2.cpp b/src/GCodes/GCodes2.cpp
index 6bb56c5a..e3f656e1 100644
--- a/src/GCodes/GCodes2.cpp
+++ b/src/GCodes/GCodes2.cpp
@@ -732,7 +732,7 @@ bool GCodes::HandleMcode(GCodeBuffer& gb, const StringRef& reply) THROWS(GCodeEx
}
break;
-#if HAS_MASS_STORAGE
+#if HAS_MASS_STORAGE || HAS_EMBEDDED_FILES
case 20: // List files on SD card
if (!LockFileSystem(gb)) // don't allow more than one at a time to avoid contention on output buffers
{
@@ -809,6 +809,9 @@ bool GCodes::HandleMcode(GCodeBuffer& gb, const StringRef& reply) THROWS(GCodeEx
}
}
break;
+#endif
+
+#if HAS_MASS_STORAGE
case 21: // Initialise SD card
if (!LockFileSystem(gb)) // don't allow more than one at a time to avoid contention on output buffers
@@ -2979,7 +2982,7 @@ bool GCodes::HandleMcode(GCodeBuffer& gb, const StringRef& reply) THROWS(GCodeEx
}
break;
-#if HAS_MASS_STORAGE
+#if HAS_MASS_STORAGE || HAS_EMBEDDED_FILES
case 503: // List variable settings
{
if (!LockFileSystem(gb))