From 0b9cbadb6e05712ae10fb30f0f46521336eb5b09 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Thu, 5 Jun 2003 19:52:05 +0000 Subject: [PATCH] trying to fix dac08 calibration dac, which doesn't seem to be updating --- comedi/drivers/cb_pcidas.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/comedi/drivers/cb_pcidas.c b/comedi/drivers/cb_pcidas.c index 7132b0f8..78ba4972 100644 --- a/comedi/drivers/cb_pcidas.c +++ b/comedi/drivers/cb_pcidas.c @@ -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; } -- 2.26.2