libftdi Archives

Subject: Re: libftdi and posix_openpt

From: Thomas Jarosch <thomas.jarosch@xxxxxxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Cc: Chunky Kibbles <chunky@xxxxxxxxxxx>
Date: Mon, 27 Jul 2009 11:54:07 +0200
Hello Gary,

On Tuesday, 21. July 2009 08:04:29 Chunky Kibbles wrote:
> Small update: By putting this inside the inner loop, it appears mostly
> [but not completely] fixed:
>
> if(0 < (ret = ftdi_usb_purge_buffers(ftdic))) {
>       fprintf(stderr, "unable to purge ftdi buffers: %d (%s)\n", ret,
> ftdi_get_error_string(ftdic)); break;
> }
>
> Now I'm doubly confused as to what's going wrong. When I put in a bunch
> of printf debug spam, it seemed to spend most of it's time waiting on a
> read() from the pty.

I took a quick look at your code, there's nothing obviously wrong in there.

Do you always have to hit enter twice or is it just the first time?

Thomas


--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread