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

Method MacroFileClosed

src/GCodes/GCodeBuffer/GCodeBuffer.cpp:1220–1233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1218}
1219
1220void GCodeBuffer::MacroFileClosed() noexcept
1221{
1222 machineState->CloseFile();
1223 macroJustStarted = false;
1224 macroFileClosed = true;
1225#if HAS_SBC_INTERFACE
1226 if (IsBinary())
1227 {
1228 // File position of the last code is no longer valid when we get here, reset it
1229 binaryParser.SetFilePosition(IsFileChannel() && OriginalMachineState().DoingFile() ? printFilePositionAtMacroStart : noFilePosition);
1230 }
1231 reprap.GetSbcInterface().EventOccurred();
1232#endif
1233}
1234
1235#endif
1236

Callers 1

DoFilePrintMethod · 0.80

Calls 4

SetFilePositionMethod · 0.80
DoingFileMethod · 0.80
EventOccurredMethod · 0.80
CloseFileMethod · 0.45

Tested by

no test coverage detected