Skip to content

Adding STATIC_ASSERT to the generated statemachine sceleton #27

Description

@xsession

static chsm_result_ten s_unplugged(chsm_tst *self, const cevent_tst *e_pst)
{
STATIC_ASSERT(self);
STATIC_ASSERT(e_pst);
switch(e_pst->sig)
{
case SIG_SYS_TICK_10ms:
lm73_debug_log_func(self, e_pst, "SIG_SYS_TICK_10ms", FUNCTION);
lm73_10ms_callback(self, e_pst);
break;
}

if(lm73_timeout(self, e_pst, LM73_UNPLUGGED_TIMEOUT))
{
    lm73_reset_timer(self, e_pst);
    lm73_read_id(self, e_pst);
    return chsm_transition(self, s_read_id_reg);
}

return chsm_ignored(self);

}

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions