Get the macro parameters for the current event, excluding the S parameter which the caller will add static*/
| 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 |
nothing calls this directly
no test coverage detected