Re: Reading from Paralell Port

Francisco Mota wrote:

> Hello all,
>
> I am using comedi for controlling a stepper motor through parallel 
> port. The point is that the comedi "write" command works fine, but I 
> am having hard time in reading from it (I always get "1"). Has anyone 
> experienced that problem?
>
> Francisco Mota

Have you problem in reading data fom D0-D7?
I had the same problem.
I modified the following lines in function parport_insn_a
#ifdef notdef
       data[1] = inb(devpriv->a_data);
#else
       data[1] = inb(dev->iobase+PARPORT_A);
#endif
Now it works fine

-- 
Franco Minutiello

Received on 2006-02-15Z12:30:45