jonblack / arduino-fsm

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

Make trigger function more synchronous with new parameter immidiate. … #21

Open Troyhy opened 6 years ago

Troyhy commented 6 years ago

Resolves issue #20 while being backward compatible. trigger function called with trigger(EVENT,false) will queue transition until next call of run machine. Call to trigger(EVENT,true) or trigger(EVENT) is the immediate transition while in trigger function.

tig commented 3 years ago

I was about to implement the same thing!