State machines are initialized to an initial state using smf_set_initial():
smf_set_initial(SMF_CTX(&module_state), &states[STATE_RUNNING]);
Initialize the state machine before you run it for the first time.
State machines are initialized to an initial state using smf_set_initial():
smf_set_initial(SMF_CTX(&module_state), &states[STATE_RUNNING]);
Initialize the state machine before you run it for the first time.