Return true if the macro being executed by fileGCode was restarted
| 3500 | |
| 3501 | // Return true if the macro being executed by fileGCode was restarted |
| 3502 | bool GCodes::GetMacroRestarted() const noexcept |
| 3503 | { |
| 3504 | const GCodeMachineState& ms = FileGCode()->LatestMachineState(); |
| 3505 | return ms.doingFileMacro && ms.GetPrevious() != nullptr && ms.GetPrevious()->firstCommandAfterRestart; |
| 3506 | } |
| 3507 | |
| 3508 | void GCodes::FileMacroCyclesReturn(GCodeBuffer& gb) noexcept |
| 3509 | { |