I have to build a Finite State Machine for Uni, we were given a template program and were told to edit the files we were given to add in our own states, however I have done this and the program doesn't work 
Unfortunately as I didn't write the program myself (and I know little about C) I have no idea why it isn't working, the program compiles fine, but after moving into the standby state, it refuses to accept any events to move it into other states.
I would ask the lecturer however the assignment is due in on Wednesday and I won't be in uni until then.
The source code is in: www.vai-net.co.uk/fsm_linux.zip
ANY help will be very much appreciated even a point in the right direction
[edit]
You can ignore this, I hate C. I am going to rewrite the program in a decent language (C#)

Unfortunately as I didn't write the program myself (and I know little about C) I have no idea why it isn't working, the program compiles fine, but after moving into the standby state, it refuses to accept any events to move it into other states.
I would ask the lecturer however the assignment is due in on Wednesday and I won't be in uni until then.
The source code is in: www.vai-net.co.uk/fsm_linux.zip
ANY help will be very much appreciated even a point in the right direction

[edit]
You can ignore this, I hate C. I am going to rewrite the program in a decent language (C#)
Last edited: