Totally understood, but my goal was to exit the main loop and enter the VIPassing loop... if only one character got lost in the transition that would be fine, but once in the loop I would expect everything to pass right ???
Thanks form the help
robtillaart:
when there is only the c typed in the monitor it is read by this line firstint inByte = Serial.read();
then VIPassing() is called
and the first thing it does is
SerialinByte = Serial.read();
:)while there is no byte in the buffer. This makes SerialInByte -1, which is not equal to 33