12-07-2007 10:05 AM
12-07-2007 10:12 AM
Easy.. If you don't receive a new byte for one sec, read the buffer, so it will empty.
The next bytes will be in order...
Meaning: you will not use standard bytes to read, you will use a timeout.
12-11-2007 10:34 AM
Thanks, I'll try that and let you know how it turns out.
02-20-2008 11:00 AM
That worked. I threw in another flush just after the read because the serial read needs the byte count. So, I just read 47 bytes, dump the rest, and wait for another 47. This helps keep it in sync even when the timing gets out of sync.
Thanks