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-03-10 14:50:44 +0300
committerDavid Crocker <dcrocker@eschertech.com>2021-03-10 14:50:44 +0300
commit2dab154f58e8387547b671ba77d8a565452de31c (patch)
treebf30fec90414c6144d12085d4d4c3c9dc8eac9c7 /src/GCodes/GCodes.h
parent08c611c79cb08510c8b8c20eba72a1928f8bd577 (diff)
Fix for DSF
Diffstat (limited to 'src/GCodes/GCodes.h')
-rw-r--r--src/GCodes/GCodes.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/GCodes/GCodes.h b/src/GCodes/GCodes.h
index 4114ec2a..b7420119 100644
--- a/src/GCodes/GCodes.h
+++ b/src/GCodes/GCodes.h
@@ -306,8 +306,10 @@ private:
static_assert(NumResources <= sizeof(Resource) * CHAR_BIT, "Too many resources to keep a bitmap of them in class GCodeMachineState");
- static constexpr int ToolChangeMacroCode = -1;
- static constexpr int SystemMacroCode = -2;
+ // Codes passed to DoFileMacro
+ static constexpr int ToolChangeMacroCode = -1; // A macro that is being called because of a tool change
+ static constexpr int SystemHelperMacroCode = -2; // Another system macro that is being called to help execute the current command
+ static constexpr int AsyncSystemMacroCode = -3; // A macro that is not being executed as part of a commend being executed, e.g. due to a trigger, filament out etc.
bool LockResource(const GCodeBuffer& gb, Resource r) noexcept; // Lock the resource, returning true if success
bool LockFileSystem(const GCodeBuffer& gb) noexcept; // Lock the unshareable parts of the file system