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

Method RestartFrom

src/GCodes/GCodeBuffer/GCodeBuffer.cpp:1364–1374  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1362#endif
1363
1364void GCodeBuffer::RestartFrom(FilePosition pos) noexcept
1365{
1366#if HAS_MASS_STORAGE || HAS_EMBEDDED_FILES
1367 if (machineState->fileState.IsLive())
1368 {
1369 fileInput->Reset(machineState->fileState); // clear the buffered data
1370 machineState->fileState.Seek(pos); // replay the abandoned instructions when we resume
1371 }
1372#endif
1373 Init(); // clear the next move
1374}
1375
1376const char *_ecv_array GCodeBuffer::DataStart() const noexcept
1377{

Callers 3

RunStateMachineMethod · 0.80
THROWSFunction · 0.80

Calls 4

IsLiveMethod · 0.80
SeekMethod · 0.80
InitFunction · 0.50
ResetMethod · 0.45

Tested by

no test coverage detected