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

Method SetWarning

src/GCodes/GCodeMachineState.cpp:293–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

291}
292
293void GCodeMachineState::SetWarning(const char *_ecv_array msg) noexcept
294{
295 if (stateMachineResult == GCodeResult::ok)
296 {
297 errorMessage = GCodeException(msg);
298 stateMachineResult = GCodeResult::warning;
299 }
300}
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

Callers

nothing calls this directly

Calls 1

GCodeExceptionClass · 0.70

Tested by

no test coverage detected