changed N_CALDACS to 32
This commit is contained in:
parent
3e2756029e
commit
ef8394e66c
1 changed files with 3 additions and 3 deletions
|
@ -34,7 +34,7 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
|
||||||
#define N_CALDACS 16
|
#define N_CALDACS 32
|
||||||
|
|
||||||
typedef struct{
|
typedef struct{
|
||||||
int subdev;
|
int subdev;
|
||||||
|
@ -132,12 +132,12 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
fn = "/dev/comedi0";
|
fn = "/dev/comedi0";
|
||||||
while (1) {
|
while (1) {
|
||||||
c = getopt(argc, argv, "f");
|
c = getopt(argc, argv, "f:");
|
||||||
if (c == -1)
|
if (c == -1)
|
||||||
break;
|
break;
|
||||||
switch (c) {
|
switch (c) {
|
||||||
case 'f':
|
case 'f':
|
||||||
fn = argv[optind];
|
fn = optarg;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
printf("bad option\n");
|
printf("bad option\n");
|
||||||
|
|
Loading…
Add table
Reference in a new issue