From: David Schleef Date: Thu, 24 May 2001 18:22:26 +0000 (+0000) Subject: changed N_CALDACS to 32 X-Git-Tag: r0_7_16~93 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ef8394e66cabcfee3912f65e9f57e3c9ea5462c3;p=comedilib.git changed N_CALDACS to 32 --- diff --git a/comedi_calibrate/comedi_calibrate.c b/comedi_calibrate/comedi_calibrate.c index b388d25..32e7488 100644 --- a/comedi_calibrate/comedi_calibrate.c +++ b/comedi_calibrate/comedi_calibrate.c @@ -34,7 +34,7 @@ #include -#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");