robtillaart:
not necesarily, but you kept 4 flags indicating somewhat the same : mode == state and a 3 flags for ledstate. Ledstates which implicit follows from mode!
Is some sort of redundancy, removing it makes code more straightforward.
Rob, I apologize for being such a noob, but I do not understand what you're referring to...
Actually I was just posting my frustration when I saw your reply...
What am I doing wrong here? Please point me to my errors.
I'm very thankful for your patience here!