The code now hangs at a call to a system function:
Code: Select all
SendBreak( portnum, 1 );
If I comment that function call out, it then hangs at the OSTimeDly(2) (after going through the !dataavail() loop three times ) in this function:
Code: Select all
int ReadCOM(int portnum, int inlen, uchar *inbuf)
{
int x;
while (!dataavail(Comfd[portnum]))
;
OSTimeDly(2);
x = ReadWithTimeout(Comfd[portnum], (char*)inbuf, inlen, 10);
return x;
}
Debug fails with the message "connection refused", so it is hard to pin down the problem(s).
I ran the Rebuild All System Files utility successfully, but that did not change the result.
I went back to Release 2.6.8 and the code worked fine, so it is not likely a hardware issue.
Any suggestions as to where to look for solutions would be appreciated.
Ed