Fixed read of parallel port data lines, as reported by Franco Minutiello
authorFrank Mori Hess <fmhess@speakeasy.net>
Mon, 20 Feb 2006 14:51:55 +0000 (14:51 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Mon, 20 Feb 2006 14:51:55 +0000 (14:51 +0000)
<franco.minutiello@darts.it>

comedi/drivers/comedi_parport.c

index 6bfa5189829db52b1387f759307f6ce22612af8e..e6cf461a81b27d541caf66e33e9d59121858e344 100644 (file)
@@ -119,7 +119,7 @@ static int parport_insn_a(comedi_device *dev,comedi_subdevice *s,
                outb(devpriv->a_data,dev->iobase+PARPORT_A);
        }
 
-       data[1] = inb(devpriv->a_data);
+       data[1] = inb(dev->iobase + PARPORT_A);
 
        return 2;
 }