For AO command test step 3, return 3 if external trigger flags have been
authorIan Abbott <abbotti@mev.co.uk>
Thu, 29 Nov 2007 15:49:31 +0000 (15:49 +0000)
committerIan Abbott <abbotti@mev.co.uk>
Thu, 29 Nov 2007 15:49:31 +0000 (15:49 +0000)
corrected.

comedi/drivers/amplc_pci224.c

index 7468f18a78acf59d3794e39d771a98128f26a5e8..3cd8193f5423b36879e8fa838b57cd6bd9d17754 100644 (file)
@@ -834,6 +834,7 @@ pci224_ao_cmdtest(comedi_device * dev, comedi_subdevice * s, comedi_cmd * cmd)
                if ((cmd->start_arg & CR_FLAGS_MASK & ~CR_EDGE) != 0) {
                        cmd->start_arg = COMBINE(cmd->start_arg, 0,
                                CR_FLAGS_MASK & ~CR_EDGE);
+                       err++;
                }
                break;
        }
@@ -865,6 +866,7 @@ pci224_ao_cmdtest(comedi_device * dev, comedi_subdevice * s, comedi_cmd * cmd)
                                ~(CR_EDGE | CR_INVERT)) != 0) {
                        cmd->scan_begin_arg = COMBINE(cmd->scan_begin_arg, 0,
                                CR_FLAGS_MASK & ~(CR_EDGE | CR_INVERT));
+                       err++;
                }
                break;
        }