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);

}

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