MCPcopy Create free account
hub / github.com/Duet3D/RepRapFirmware / GetMacroRestarted

Method GetMacroRestarted

src/GCodes/GCodes.cpp:3502–3506  ·  view source on GitHub ↗

Return true if the macro being executed by fileGCode was restarted

Source from the content-addressed store, hash-verified

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

Callers 1

RepRap.cppFile · 0.80

Calls 1

GetPreviousMethod · 0.45

Tested by

no test coverage detected