fix COMEDI_SUBD_UNUSED bug
This commit is contained in:
parent
f060f85d90
commit
03f8fd8378
1 changed files with 1 additions and 0 deletions
|
@ -58,6 +58,7 @@ int get_subdevices(comedi_t *it)
|
|||
|
||||
for(i=0;i<it->n_subdevices;i++){
|
||||
r[i].type = s[i].type;
|
||||
if(r[i].type==COMEDI_SUBD_UNUSED)continue;
|
||||
r[i].n_chan = s[i].n_chan;
|
||||
r[i].subd_flags = s[i].subd_flags;
|
||||
r[i].timer_type = s[i].timer_type;
|
||||
|
|
Loading…
Add table
Reference in a new issue