From 0caa6d14d1dadb148d5eae58e7d799d396109930 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Sun, 23 Jun 2002 23:27:47 +0000 Subject: [PATCH] fixed length of bitstream for ad8402 trimpot --- comedi/drivers/cb_pcidas.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.26.2