diff options
author | David Crocker <dcrocker@eschertech.com> | 2021-09-03 19:44:38 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2021-09-03 19:44:38 +0300 |
commit | 762a444079190a302077397cc817a5e38804b88c (patch) | |
tree | 8f178d871f76a91a9768f15ef3a84f3174f871a9 /src/GCodes/GCodeMachineState.h | |
parent | 670d8f90065b3e2f66d342c12fb20c37e2fa56d2 (diff) |
Added support for pausing macros and restarting them
Diffstat (limited to 'src/GCodes/GCodeMachineState.h')
-rw-r--r-- | src/GCodes/GCodeMachineState.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/GCodes/GCodeMachineState.h b/src/GCodes/GCodeMachineState.h index edf64e5f..638dc591 100644 --- a/src/GCodes/GCodeMachineState.h +++ b/src/GCodes/GCodeMachineState.h @@ -195,6 +195,9 @@ public: GCodeMachineState *Pop() const noexcept; uint8_t GetBlockNesting() const noexcept { return blockNesting; } + void SetMacroRestartable(bool b) noexcept { macroRestartable = b; } + bool CanRestartMacro() const noexcept; + VariableSet variables; // local variables and parameters float feedRate; #if HAS_MASS_STORAGE || HAS_EMBEDDED_FILES @@ -222,7 +225,8 @@ public: waitingForAcknowledgement : 1, messageAcknowledged : 1, messageCancelled : 1, - localPush : 1 // true if this stack frame was created by M120, so we use the parent variables + localPush : 1, // true if this stack frame was created by M120, so we use the parent variables + macroRestartable : 1 #if HAS_LINUX_INTERFACE , lastCodeFromSbc : 1, macroStartedByCode : 1, |