Hand-applied patch from Rolf Mueller <rolf.mueller@uni-tuebingen.de>.
authorDavid Schleef <ds@schleef.org>
Fri, 8 Mar 2002 22:44:05 +0000 (22:44 +0000)
committerDavid Schleef <ds@schleef.org>
Fri, 8 Mar 2002 22:44:05 +0000 (22:44 +0000)
Most of the patch was obsoleted by the previous check-in.

comedi/drivers/ni_mio_common.c

index d18d2b62a7f4a4f19a330c445f88af1f71a876a6..878b2a87ed92c100b69a9df58941c1722aabb108 100644 (file)
@@ -1516,8 +1516,10 @@ static void ni_ao_fifo_load(comedi_device *dev,comedi_subdevice *s,
        // do any munging necessary
        ni_ao_munge(dev, s, data, n);
 
-       for(i=0;i<n;i++){
-               ni_writew(data[i],DAC_FIFO_Data);
+       if(boardtype.reg_611x){
+               for(i=0;i<n;i++)ni_writew(data[i],DAC_FIFO_Data_611x);
+       }else{
+               for(i=0;i<n;i++)ni_writew(data[i],DAC_FIFO_Data);
        }
 
        // increment channel index