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

Method SetFileExecuting

src/GCodes/GCodeMachineState.cpp:187–201  ·  view source on GitHub ↗

Set the state to indicate a file is being processed

Source from the content-addressed store, hash-verified

185
186// Set the state to indicate a file is being processed
187void GCodeMachineState::SetFileExecuting() noexcept
188{
189#if HAS_MASS_STORAGE || HAS_EMBEDDED_FILES
190 if (!fileState.IsLive())
191#endif
192 {
193 fileId = (GetPrevious() != nullptr ? GetPrevious()->fileId : NoFileId) + 1;
194 if (fileId == NoFileId)
195 {
196 // In case the ID overlapped increase it once more (should never happen)
197 fileId++;
198 }
199 fileFinished = false;
200 }
201}
202
203#endif
204

Callers 1

StartNewFileMethod · 0.80

Calls 1

IsLiveMethod · 0.80

Tested by

no test coverage detected