trying to fix dac08 calibration dac, which doesn't seem to be updating
authorFrank Mori Hess <fmhess@speakeasy.net>
Thu, 5 Jun 2003 19:52:05 +0000 (19:52 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Thu, 5 Jun 2003 19:52:05 +0000 (19:52 +0000)
comedi/drivers/cb_pcidas.c

index 7132b0f87804fd1891c5504833c00bbe428fc1de..78ba49729402c1ee4b13bb1fe19cb37892912586 100644 (file)
@@ -953,7 +953,12 @@ static int dac08_write( comedi_device *dev, lsampl_t value )
 
        devpriv->dac08_value = value;
 
+       outw( ( value & 0xff ), devpriv->control_status + CALIBRATION_REG );
+       comedi_udelay( 1 );
        outw( SELECT_DAC08_BIT | ( value & 0xff ), devpriv->control_status + CALIBRATION_REG );
+       comedi_udelay( 1 );
+       outw( ( value & 0xff ), devpriv->control_status + CALIBRATION_REG );
+       comedi_udelay( 1 );
 
        return 1;
 }