changed N_CALDACS to 32
authorDavid Schleef <ds@schleef.org>
Thu, 24 May 2001 18:22:26 +0000 (18:22 +0000)
committerDavid Schleef <ds@schleef.org>
Thu, 24 May 2001 18:22:26 +0000 (18:22 +0000)
comedi_calibrate/comedi_calibrate.c

index b388d25d8293fc80c895d12d79f3c30385e322ef..32e7488ea8e0847df8cfb2b52b62de38d5784251 100644 (file)
@@ -34,7 +34,7 @@
 #include <string.h>
 
 
-#define N_CALDACS 16
+#define N_CALDACS 32
 
 typedef struct{
        int subdev;
@@ -132,12 +132,12 @@ int main(int argc, char *argv[])
 
        fn = "/dev/comedi0";
        while (1) {
-               c = getopt(argc, argv, "f");
+               c = getopt(argc, argv, "f:");
                if (c == -1)
                        break;
                switch (c) {
                case 'f':
-                       fn = argv[optind];
+                       fn = optarg;
                        break;
                default:
                        printf("bad option\n");