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

Method GetParameters

src/Platform/Event.cpp:103–112  ·  view source on GitHub ↗

Get the macro parameters for the current event, excluding the S parameter which the caller will add static*/

Source from the content-addressed store, hash-verified

101
102// Get the macro parameters for the current event, excluding the S parameter which the caller will add
103/*static*/ void Event::GetParameters(VariableSet& vars) noexcept
104{
105 const Event *_ecv_null const ep = eventsPending;
106 if (ep != nullptr && ep->isBeingProcessed)
107 {
108 vars.InsertNewParameter("D", ExpressionValue((int32_t)(ep->deviceNumber)));
109 vars.InsertNewParameter("B", ExpressionValue((int32_t)(ep->boardAddress))); // always include B so that the same macros can be used on all Duets
110 vars.InsertNewParameter("P", ExpressionValue((int32_t)(ep->param)));
111 }
112}
113
114// Get the default action for the current event
115/*static*/ PrintPausedReason Event::GetDefaultPauseReason() noexcept

Callers

nothing calls this directly

Calls 1

ExpressionValueClass · 0.70

Tested by

no test coverage detected