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

Method Push

src/GCodes/GCodes.cpp:1851–1860  ·  view source on GitHub ↗

Save (some of) the state of the machine for recovery in the future.

Source from the content-addressed store, hash-verified

1849
1850// Save (some of) the state of the machine for recovery in the future.
1851bool GCodes::Push(GCodeBuffer& gb, bool withinSameFile) noexcept
1852{
1853 const bool ok = gb.PushState(withinSameFile);
1854 if (!ok)
1855 {
1856 platform.MessageF(ErrorMessage, "Push(): stack overflow on %s\n", gb.GetChannel().ToString());
1857 AbortPrint(gb);
1858 }
1859 return ok;
1860}
1861
1862// Recover a saved state
1863void GCodes::Pop(GCodeBuffer& gb, bool withinSameFile) noexcept

Callers 9

HandleGCodeReplyMethod · 0.80
HttpResponder.cppFile · 0.80
SendGCodeReplyMethod · 0.80
FillBufferMethod · 0.80
HandleGCodeReplyMethod · 0.80
AppendUsbReplyMethod · 0.80
RawMessageMethod · 0.80
SendPanelDueMessageMethod · 0.80
AppendAuxReplyMethod · 0.80

Calls 2

PushStateMethod · 0.80
MessageFMethod · 0.45

Tested by

no test coverage detected