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

Method StartNewFile

src/GCodes/GCodeBuffer/GCodeBuffer.cpp:338–345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

336}
337
338void GCodeBuffer::StartNewFile() noexcept
339{
340#if HAS_SBC_INTERFACE
341 machineState->SetFileExecuting();
342#endif
343 machineState->lineNumber = 0; // reset line numbering when M32 is run
344 IF_NOT_BINARY(stringParser.StartNewFile());
345}
346
347// Called when we reach the end of the file we are reading from. Return true if there is a line waiting to be processed.
348bool GCodeBuffer::FileEnded() noexcept

Callers 3

DoFileMacroMethod · 0.45
GCodes.cppFile · 0.45
ForkFromMethod · 0.45

Calls 1

SetFileExecutingMethod · 0.80

Tested by

no test coverage detected