1
0
Fork 0

Replace CO_NMT_setInternalState() with CO_NMT_sendInternalCommand().

This commit is contained in:
Janez 2021-02-25 07:37:16 +01:00
parent 88558203a0
commit c3ec5dfb68

View file

@ -320,18 +320,17 @@ static inline CO_NMT_internalState_t CO_NMT_getInternalState(CO_NMT_t *NMT) {
/**
* Set internal NMT state
* Send NMT command to self, without sending NMT message
*
* Functions sets state directly, without any checking. @ref CO_NMT_process()
* may also switch between states automatically, see @ref CO_NMT_control_t.
* Internal NMT state will be verified and switched inside @ref CO_NMT_process()
*
* @param NMT This object.
* @param state New state.
* @param command NMT command
*/
static inline void CO_NMT_setInternalState(CO_NMT_t *NMT,
CO_NMT_internalState_t state)
static inline void CO_NMT_sendInternalCommand(CO_NMT_t *NMT,
CO_NMT_command_t command)
{
if (NMT != NULL) NMT->operatingState = state;
if (NMT != NULL) NMT->internalCommand = command;
}