Hi Mark,
ok - idiot hat on me - I was incorrectly setting up the com callback - in fact the original code was removing it!
InstallComCallback (1, LWRS_RECEIVE | LWRS_RXFLAG, 3, 13, ComCBFunc, 0);
OK,
I;ve attached a new set of files - they have a few extra indicators and an extra button to force the serial byte in check. (just in case I've made another mistake - sorry)
The time indicator is a 2 second indicator. If you hit the get data button, it checks the outQLen for up to 2 seconds, stopping once all the data has gone - good check)
If you hit the check port button, it checks the inQlen for either 2 seconds, or a length of 3 b
ytes. If there's 3 or more bytes of data in the inQ, it forces a call to the comcallback function.
If this works, we can strip out some of the checking again.
Fingers crossed.
S.
// it takes almost no time to rate an answer