I get as far as a repeated printing of the "while line". What am I doing wrong in the "state" statements?
Sorry, my crystal ball is out at the cleaners. It might be back next week. You could stop back by then, or show us what you are receiving on Serial2.
What are these for?
messageWaitFor10:
messageWaitForID:
You're not planning to use goto, are you?