Your code in post #11 does not do what you describe. For instance it never prints anything except "MODE1"
Did you post the correct code ?
Your code in post #11 does not do what you describe. For instance it never prints anything except "MODE1"
Did you post the correct code ?