random fixes
authorDavid Schleef <ds@schleef.org>
Tue, 10 Oct 2000 08:41:42 +0000 (08:41 +0000)
committerDavid Schleef <ds@schleef.org>
Tue, 10 Oct 2000 08:41:42 +0000 (08:41 +0000)
comedi_calibrate/comedi_calibrate.c

index f3a335cd73a97b8bbad19a464838c66ee1fb8670..bd1516e8892866072110429b9b9e3d8d97e26292 100644 (file)
@@ -128,7 +128,7 @@ int main(int argc, char *argv[])
 
        fn = "/dev/comedi0";
        while (1) {
-               c = getopt(argc, argv, "rf");
+               c = getopt(argc, argv, "f");
                if (c == -1)
                        break;
                switch (c) {
@@ -287,7 +287,7 @@ void cal_ni_mio_E(void)
 
                printf("results (offset)\n");
                for(i=0;i<16;i++){
-                       read_chan(0,i);
+                       read_chan(i,0);
                }
 
                return;
@@ -346,7 +346,7 @@ void cal_ni_mio_E(void)
 
                printf("results (offset)\n");
                for(i=0;i<16;i++){
-                       read_chan(0,i);
+                       read_chan(i,0);
                }
 
                return;