/* Function for changing the state of the state machine.  */
static void state_machine_state_change(state_t new_state)
/* Function for changing the state of the state machine.  */
static void state_machine_state_change(state_t new_state)
{
    m_state = new_state;
    state_entry_action_execute();
}