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

Method SetPrintFinished

src/GCodes/GCodeBuffer/GCodeBuffer.cpp:1156–1172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1154}
1155
1156void GCodeBuffer::SetPrintFinished() noexcept
1157{
1158 FileId printFileId = OriginalMachineState().fileId;
1159 if (printFileId != NoFileId)
1160 {
1161 for (GCodeMachineState *ms = machineState; ms != nullptr; ms = ms->GetPrevious())
1162 {
1163 if (ms->fileId == printFileId)
1164 {
1165 // Mark machine states executing the print file as finished
1166 ms->fileFinished = true;
1167 }
1168 }
1169 reprap.GetSbcInterface().EventOccurred();
1170 }
1171 printFilePositionAtMacroStart = noFilePosition;
1172}
1173
1174// This is only called when using the SBC interface and returns if the macro file could be opened
1175bool GCodeBuffer::RequestMacroFile(const char *filename, bool fromCode) noexcept

Callers 1

ExchangeDataMethod · 0.80

Calls 2

EventOccurredMethod · 0.80
GetPreviousMethod · 0.45

Tested by

no test coverage detected