On 18 Mar 2014, at 15:24, Von Wallace wrote:
>
> Please add this to the code base. I pulled my hair out on this one.
>
> {$IFNDEF FPC}
> FHandle := THandle(Libc.open(pchar(FDevice), O_RDWR or O_SYNC));
> {$ELSE}
> FHandle := THandle(fpOpen(FDevice, O_RDWR or O_SYNC or O_NONBLOCK)); ////
> FWV
> {$ENDIF}
>
Small addition:
When using an FTDI USB to serial adapter this will still not function
correctly. Therefore you also need to add something like this in the section
where you pick the port's attributes:
Attr.c_cflag:= Attr.c_cflag or CREAD or CLOCAL;
This comes from http://www.easysw.com/~mike/serial/serial.html but the site
appears to be offline now.
Hope it does someone some good :-)
--
Ewald
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public