libftdi Archives

Subject: Re: libftdi and posix_openpt

From: Chunky Kibbles <chunky@xxxxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Mon, 27 Jul 2009 22:59:45 -0400
On Mon, Jul 27, 2009 at 11:54:07AM +0200, Thomas Jarosch wrote:
> Hello Gary,

Heya

> 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?

It's every time. I'm still completely lost on this :-/

Thanks,
Gary (-;

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

Current Thread