starting to see the light at the end of tunnel (it's working but with a serial to PC >19200bauds) but still got a couple of questions if anyone bothers to read anymore
So here's a bit of code I put in my MEGA to check if I still get my synchro (252 followed by 253) correctly.
const int frameLength=50;
But even though I test the serial.available() being > to 0, i sometimes get -1 between two correct bytes. Sometimes even two "-1"!
I thought testing for serial.available()>0 would take care of that problem but it seems not... Why?? I tried with a condition >1 with the same results...
Thanks for the help!