digint/tinyfsm

FSM with identical state names compile, but segfault at runtime

esromneb opened this issue · 1 comments

If I have two state machines with identical states Reset

And they are both setup with FSM_INITIAL_STATE(FsmA, Reset)

The code compiles fine, but it seems to seg fault. Any tips here? Thanks.

If you have two state machines, wouldn't it be:

FSM_INITIAL_STATE(FsmA, Reset)
FSM_INITIAL_STATE(FsmB, Reset)

tinyfsm is all about static types, so you can't have two state machines of same type.