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

Method HandleReply

src/GCodes/GCodes.cpp:4135–4139  ·  view source on GitHub ↗

Handle sending a reply back to the appropriate interface(s) and update lastResult Note that 'reply' may be empty. If it isn't, then we need to append newline when sending it.

Source from the content-addressed store, hash-verified

4133// Handle sending a reply back to the appropriate interface(s) and update lastResult
4134// Note that 'reply' may be empty. If it isn't, then we need to append newline when sending it.
4135void GCodes::HandleReply(GCodeBuffer& gb, GCodeResult rslt, const char *_ecv_array reply) noexcept
4136{
4137 gb.SetLastResult(rslt);
4138 HandleReplyPreserveResult(gb, rslt, reply);
4139}
4140
4141// Handle sending a reply back to the appropriate interface(s) but don't update lastResult
4142// Note that 'reply' may be empty. If it isn't, then we need to append newline when sending it.

Callers 3

WriteToFileMethod · 0.80
FinishWritingBinaryMethod · 0.80
FileEndedMethod · 0.80

Calls 6

MessageMethod · 0.80
GetCommandLetterMethod · 0.45
GetCommandNumberMethod · 0.45
MessageFMethod · 0.45
LengthMethod · 0.45

Tested by

no test coverage detected