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

Method SetFinished

src/GCodes/GCodeBuffer/GCodeBuffer.cpp:925–939  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

923}
924
925void GCodeBuffer::SetFinished(bool f) noexcept
926{
927 if (f)
928 {
929#if HAS_SBC_INTERFACE
930 sendToSbc = false;
931#endif
932 LatestMachineState().firstCommandAfterRestart = false;
933 PARSER_OPERATION(SetFinished());
934 }
935 else
936 {
937 bufferState = GCodeBufferState::executing;
938 }
939}
940
941void GCodeBuffer::Disable() noexcept
942{

Callers 5

StartNextGCodeMethod · 0.45
DoFilePrintMethod · 0.45
RunStateMachineMethod · 0.45
ExchangeDataMethod · 0.45
InvalidateResourcesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected