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

Method CopyStateFrom

src/GCodes/GCodeMachineState.cpp:263–272  ·  view source on GitHub ↗

This is called only after running config.g and when using M26/M23 to resume a print

Source from the content-addressed store, hash-verified

261
262// This is called only after running config.g and when using M26/M23 to resume a print
263void GCodeMachineState::CopyStateFrom(const GCodeMachineState& other) noexcept
264{
265 selectedPlane = other.selectedPlane;
266 drivesRelative = other.drivesRelative;
267 axesRelative = other.axesRelative;
268 feedRate = other.feedRate;
269 volumetricExtrusion = other.volumetricExtrusion;
270 usingInches = other.usingInches;
271 inverseTimeMode = other.inverseTimeMode;
272}
273
274// Set the error message and associated state
275void GCodeMachineState::SetError(const char *_ecv_array msg, int parameter) noexcept

Callers 2

GCodes2.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected