fixed length of bitstream for ad8402 trimpot
authorFrank Mori Hess <fmhess@speakeasy.net>
Sun, 23 Jun 2002 23:27:47 +0000 (23:27 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Sun, 23 Jun 2002 23:27:47 +0000 (23:27 +0000)
comedi/drivers/cb_pcidas.c

index b02d46819189da343473c98534fe2f7b39439ae5..f18acac8266caef5991867f0eaf990ab17b80d73 100644 (file)
@@ -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;