Return of State in a thread
Hi,
I've a monitor thread established, and then there is a loop that is watching is serial port. After all data has been read, how do I set it back to monitor state?
I asked this because my thread keeps looping and keeps getting garbage data after reading 1-2 times of valid data. I'm sure the program has broken from the loop. But the loop is entered again without another interrupt coming from the serial port.
I might be missing something. But if you can see the potential logic error is, please post.
Thanks in advance
Jack
|