From ef8394e66cabcfee3912f65e9f57e3c9ea5462c3 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Thu, 24 May 2001 18:22:26 +0000 Subject: [PATCH] changed N_CALDACS to 32 --- comedi_calibrate/comedi_calibrate.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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"); -- 2.26.2