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

Method RetrieveStateMachineResult

src/GCodes/GCodeMachineState.cpp:303–313  ·  view source on GitHub ↗

Retrieve the result and error message if it is worse than the one we already have

Source from the content-addressed store, hash-verified

301
302// Retrieve the result and error message if it is worse than the one we already have
303void GCodeMachineState::RetrieveStateMachineResult(const GCodeBuffer& gb, const StringRef& reply, GCodeResult& rslt) const noexcept
304{
305 if (stateMachineResult >= rslt)
306 {
307 rslt = stateMachineResult;
308 if (!errorMessage.IsNull())
309 {
310 errorMessage.GetMessage(reply, &gb);
311 }
312 }
313}
314
315GCodeMachineState *GCodeMachineState::Pop() const noexcept
316{

Callers 1

RunStateMachineMethod · 0.80

Calls 2

GetMessageMethod · 0.80
IsNullMethod · 0.45

Tested by

no test coverage detected