[Rxtx] Fix to writeArray(...)
Botond Kardos
Botond.Kardos at essnet.se
Tue May 10 03:13:51 MDT 2005
Hi,
here's what I think is a correction to writeArray (see below). The
diff is based on the rxtx-devel HEAD, and wasn't tested yet. I've tested
it only with 1.4.15 and it's so simple it must work with the HEAD too.
Cheers,
Botond
Index: src/SerialImp.c
===================================================================
RCS file: /usr/local/cvsroot/rxtx-devel/src/SerialImp.c,v
retrieving revision 1.183
diff -u -r1.183 SerialImp.c
--- src/SerialImp.c 9 Apr 2005 08:32:21 -0000 1.183
+++ src/SerialImp.c 10 May 2005 08:28:03 -0000
@@ -1499,7 +1499,7 @@
}
report ("writeArray()\n");
}
- while ((total < count) && (result < 0 && errno == EINTR));
+ while ((result >= 0 && total < count) || (result < 0 && errno ==
EINTR));
if (result < 0)
{
/* mexPrintf("GOT IT!!!\n"); */
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qbang.org/pipermail/rxtx/attachments/20050510/48930d29/attachment-1146.htm>
More information about the Rxtx
mailing list