fix use of COMEDI_DEVCONF_AUX_DATA* options (from Bernd Porr)
authorFrank Mori Hess <fmhess@speakeasy.net>
Wed, 16 Jul 2003 16:38:33 +0000 (16:38 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Wed, 16 Jul 2003 16:38:33 +0000 (16:38 +0000)
comedi_config/comedi_config.c

index b52148edc589679ac5b878cd7f51e027f878ba03..7540733af61c34bf68f794a8c4415abdce3d0d41 100644 (file)
@@ -257,8 +257,8 @@ int main(int argc,char *argv[])
                                exit(1);
                        }
 
-                       it.options[0]=(int)init_data;
-                       it.options[1]=init_size;
+                       it.options[COMEDI_DEVCONF_AUX_DATA]=(int)init_data;
+                       it.options[COMEDI_DEVCONF_AUX_DATA_LENGTH]=init_size;
                }
 
        /* add: sanity check for device */