Closed divyamodi128 closed 3 years ago
Hi, thanks for reporting this.
The problem with test code is that it executes do_terminate() right after sending the event. It happens that the FSM is terminated before it had a chance to process the event. Put a time.sleep(1) after sending the event to give the FSM chance to process the event.
Hi, if you have more questions, please, feel free to open new issue. Thanks!
I am trying to define Some Events with parameters as event class,
AxisButtonPress(fsm.Event)
from state machine as shown below fromdemofsm.py
,The
on_axis_button_press
event doesn't get called by themyfsm
StateMachine, even after sending the event to the sm. And leads toOutput
Expected