[fpc-pascal] help with serial.pp unit please

Graeme Geldenhuys graemeg.lists at gmail.com
Thu Dec 13 09:33:32 CET 2007


On 13/12/2007, Marco van de Voort <marcov at stack.nl> wrote:
> >         s := 'ATH^M^J';
>
> Shouldn't you use the relevant #xxx chars here?

Oops!  You are right.

I also noticed that I was using SerWrite() wrong.  The third parameter
is not a 'out' parameter as I assumed!

     status := SerWrite(serialhandle, s, writecount);

had to change to

     status := SerWrite(serialhandle, s, Length(s));



Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/



More information about the fpc-pascal mailing list