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

Method DoingFile

src/GCodes/GCodeMachineState.cpp:206–219  ·  view source on GitHub ↗

Return true if we are reading GCode commands from a file or macro

Source from the content-addressed store, hash-verified

204
205// Return true if we are reading GCode commands from a file or macro
206bool GCodeMachineState::DoingFile() const noexcept
207{
208#if HAS_SBC_INTERFACE
209 if (reprap.UsingSbcInterface() && fileId != NoFileId)
210 {
211 return true;
212 }
213#endif
214#if HAS_MASS_STORAGE || HAS_EMBEDDED_FILES
215 return fileState.IsLive();
216#else
217 return false;
218#endif
219}
220
221// Close the currently executing file
222void GCodeMachineState::CloseFile() noexcept

Callers 7

StartNextGCodeMethod · 0.80
GCodeBuffer.hFile · 0.80
IsLaterThanMethod · 0.80
AbortFileMethod · 0.80
MacroFileClosedMethod · 0.80
MessageAcknowledgedMethod · 0.80
GetFilePositionMethod · 0.80

Calls 2

UsingSbcInterfaceMethod · 0.80
IsLiveMethod · 0.80

Tested by

no test coverage detected