check length of INSN_CONFIG_ANALOG_TRIG
authorFrank Mori Hess <fmhess@speakeasy.net>
Fri, 27 Oct 2006 17:18:51 +0000 (17:18 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Fri, 27 Oct 2006 17:18:51 +0000 (17:18 +0000)
comedi/comedi_fops.c

index 28d2506dcda7d2bfa8c89374f6984d8fc59b7dda..07cc56e9f97b68e2a060778b6ba5da3118541e44 100644 (file)
@@ -649,6 +649,7 @@ static int check_insn_config_length(comedi_insn *insn, lsampl_t *data)
                if(insn->n == 3) return 0;
                break;
        case INSN_CONFIG_PWM_OUTPUT:
+       case INSN_CONFIG_ANALOG_TRIG:
                if(insn->n == 5) return 0;
                break;
        //by default we allow the insn since we don't have checks for all possible cases yet