*** empty log message ***
authorFrank Mori Hess <fmhess@speakeasy.net>
Sat, 27 Jan 2001 21:26:19 +0000 (21:26 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Sat, 27 Jan 2001 21:26:19 +0000 (21:26 +0000)
comedi/drivers/das800.c

index 0d9e524ed9b73a05cb8c311e9335dfc1ef76e2ed..416c7070e6791a45f96e8de9005e30f35d9f6423 100644 (file)
@@ -844,10 +844,10 @@ static int das800_do_wbits(comedi_device *dev, comedi_subdevice *s, comedi_insn
        mux_bits = inb(dev->iobase + DAS800_STATUS) & 0x7;
 
        // only set bits that have been masked
+       data[0] &= 0xf;
        wbits = devpriv->do_bits >> 4;
        wbits &= ~data[0];
        wbits |= data[0] & data[1];
-       wbits &= 0xf;
        devpriv->do_bits = wbits << 4;
 
        comedi_spin_lock_irqsave(&devpriv->spinlock, irq_flags);