From: Frank Mori Hess Date: Sun, 23 Jun 2002 23:27:47 +0000 (+0000) Subject: fixed length of bitstream for ad8402 trimpot X-Git-Tag: r0_7_66~185 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0caa6d14d1dadb148d5eae58e7d799d396109930;p=comedi.git fixed length of bitstream for ad8402 trimpot --- diff --git a/comedi/drivers/cb_pcidas.c b/comedi/drivers/cb_pcidas.c index b02d4681..f18acac8 100644 --- a/comedi/drivers/cb_pcidas.c +++ b/comedi/drivers/cb_pcidas.c @@ -1759,7 +1759,7 @@ static int trimpot_7376_write(comedi_device *dev, uint8_t value) static int trimpot_8402_write(comedi_device *dev, unsigned int channel, uint8_t value) { // XXX check docs, this function is just a guess - static const int bitstream_length = 9; + static const int bitstream_length = 10; unsigned int bitstream = ( ( channel & 0x1 ) << 8 ) | ( value & 0xff ); unsigned int register_bits; static const int ad8402_udelay = 1;