jonblack / arduino-fsm

Arduino library for implementing a finite state machine.
MIT License
200 stars 97 forks source link

Prop init bug #8

Open PerfProf opened 8 years ago

PerfProf commented 8 years ago

The constructor for the Fsm class failed to mention the m_num_timed_transtitions in the member initialization list.

Since this is an initialization problem the bug may not demonstrate itself because the likely intial value of zero is also the intended default value. Adding debug statements caused the problem to go away in my test sketches.

I added two simple test cases to verify basic functionality of the FSM.

jonblack commented 8 years ago

Thanks for this. Especially that nasty initialization bug. I should be getting my motherboard back in next week so will be able to fix/merge everything in the issue list and made a release.