[ECOS] Serial application
Jonathan Larmour
jlarmour@redhat.com
Wed May 9 12:27:00 GMT 2001
Ho Shui Choy Stanley PS03B NCS wrote:
>
> Here is what I changed.
>
> in /io/serial/current/src/common/serial.c
>
> serial_read {
> ...
> ...
> #ifdef CYGOPT_IO_SERIAL_SUPPORT_NONBLOCKING
> if (cbuf->blocking) { <- previously checking for false
> *len = size; // characters actually read
> res = -EAGAIN;
> break;
> }
> #endif // CYGOPT_IO_SERIAL_SUPPORT_NONBLOCKING
But the check _should_ be for !cbuf->blocking surely?
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine
More information about the Ecos-discuss
mailing list