El 06/09/2017 a las 21:22, Bo Berglund escribió:
Inc(RxTcp, Length(Buf));
SerWrite(FComH, Buf[0], Length(Buf));
Inc(TxSer, Length(Buf));
Where could I be losing incoming serial data?
Hello,
Where do you check that "Length(Buf)" has been sent ?
if SerWrite(FComH, Buf[0], Length(Buf))<>Length(Buf) then Raise
Exception.Create("KBOOM");
--
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal