fix checking of first channel in chanlist for ai cmd
authorFrank Mori Hess <fmhess@speakeasy.net>
Fri, 29 Nov 2002 22:34:46 +0000 (22:34 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Fri, 29 Nov 2002 22:34:46 +0000 (22:34 +0000)
comedi/drivers/ni_labpc.c

index 09d7aefaa540b0a7a28043116e07e6eafee9e089..ee7d554c157b07530403378e7b87881b0e123e3b 100644 (file)
@@ -969,7 +969,7 @@ static int labpc_ai_cmdtest(comedi_device *dev,comedi_subdevice *s,comedi_cmd *c
                {
                        scan_up = 1;
                }
-               for(i = 1; i < cmd->chanlist_len; i++)
+               for(i = 0; i < cmd->chanlist_len; i++)
                {
                        if(scan_up == 0)
                        {