I implemented a program for first time using state machines and Enum (type def).
I have 2 state machines (nested)
I am not sure if the data flow between the Main state machine and the Sub state machine is correct. The program loops continuously ( this is a MOTOR PROGRAM) and I see that the motor keeps working continuously. It is supposed to run the mentioned Number of Steps once and then stop.
Please have a look at my code and tell me where I could have gone wrong.
Figured out ! Thank you. One of the ENUM was not defined to the correct state.