explicitly initialized value, subdevice, channel, aref and range in main.c
This commit is contained in:
parent
57f4801290
commit
7263bf6d2c
3 changed files with 5 additions and 12 deletions
|
@ -28,10 +28,7 @@
|
|||
#define N_SCANS 10
|
||||
#define N_CHANS 16
|
||||
|
||||
int subdevice = 0;
|
||||
int chan=9;
|
||||
int range = 0;
|
||||
int aref = AREF_GROUND;
|
||||
int n_chan = 3;
|
||||
double freq = 1000;
|
||||
|
||||
|
|
10
demo/main.c
10
demo/main.c
|
@ -18,11 +18,11 @@
|
|||
char *filename="/dev/comedi0";
|
||||
int verbose_flag;
|
||||
|
||||
int value;
|
||||
int subdevice;
|
||||
int channel;
|
||||
int aref;
|
||||
int range;
|
||||
int value=0;
|
||||
int subdevice=0;
|
||||
int channel=0;
|
||||
int aref=0;
|
||||
int range=0;
|
||||
|
||||
|
||||
int parse_options(int argc, char *argv[])
|
||||
|
|
|
@ -30,10 +30,6 @@
|
|||
#define N_SCANS 10
|
||||
#define N_CHANS 16
|
||||
|
||||
int subdevice = 0;
|
||||
int chan=0;
|
||||
int range = 0;
|
||||
int aref = AREF_GROUND;
|
||||
double freq = 1000;
|
||||
|
||||
#define BUFSZ 1000
|
||||
|
|
Loading…
Add table
Reference in a new issue