diff options
author | David Crocker <dcrocker@eschertech.com> | 2019-12-31 11:33:14 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2019-12-31 11:33:14 +0300 |
commit | 3eabb5c1fe3157c2680391b7ceba5bef5d5316c4 (patch) | |
tree | 358a5ec02883b91ec66703627b3e4f456fba0df0 /src/GCodes/GCodeMachineState.h | |
parent | efa3c9043c876ab8350ea2379c86d92fdb4044bc (diff) |
More work on GCode meta commands
Diffstat (limited to 'src/GCodes/GCodeMachineState.h')
-rw-r--r-- | src/GCodes/GCodeMachineState.h | 9 |
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 |