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-12-31 11:33:14 +0300
committerDavid Crocker <dcrocker@eschertech.com>2019-12-31 11:33:14 +0300
commit3eabb5c1fe3157c2680391b7ceba5bef5d5316c4 (patch)
tree358a5ec02883b91ec66703627b3e4f456fba0df0 /src/GCodes/GCodeMachineState.h
parentefa3c9043c876ab8350ea2379c86d92fdb4044bc (diff)
More work on GCode meta commands
Diffstat (limited to 'src/GCodes/GCodeMachineState.h')
-rw-r--r--src/GCodes/GCodeMachineState.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/GCodes/GCodeMachineState.h b/src/GCodes/GCodeMachineState.h
index 3a636847..e7033de5 100644
--- a/src/GCodes/GCodeMachineState.h
+++ b/src/GCodes/GCodeMachineState.h
@@ -118,7 +118,14 @@ enum class Compatibility : uint8_t
};
// Type of the block we are in when processing conditional GCode
-enum class BlockType : uint8_t { plain, ifTrue, ifFalseNoneTrue, ifFalseHadTrue, loop };
+enum class BlockType : uint8_t
+{
+ plain, // a normal block
+ ifTrue, // the block immediately after 'if' when the condition was true, or after 'elif' when the condition was true and previous conditions were false
+ ifFalseNoneTrue, // the block immediately after 'if' when the condition was false, or after 'elif' when all conditions so far were false
+ ifFalseHadTrue, // the block immediately after 'elif' when we have already seem a true condition
+ loop // block inside a 'while' command
+};
// Class to hold the state of gcode execution for some input source
class GCodeMachineState