Updated it to only run the (unreliable) do_test_for_insn_bits() if the
information was not available in the subdevice info.
This commit is contained in:
parent
4d61d75531
commit
8103c5334a
1 changed files with 16 additions and 3 deletions
19
lib/filler.c
19
lib/filler.c
|
@ -143,10 +143,23 @@ int get_subdevices(comedi_t *it)
|
|||
}
|
||||
|
||||
r[i].has_cmd = do_test_for_cmd(it,i);
|
||||
if(it->has_insnlist_ioctl){
|
||||
r[i].has_insn_bits = do_test_for_insn_bits(it,i);
|
||||
}else{
|
||||
switch(s[i].insn_bits_support)
|
||||
{
|
||||
case COMEDI_UNKNOWN_SUPPORT:
|
||||
if(it->has_insnlist_ioctl){
|
||||
r[i].has_insn_bits = do_test_for_insn_bits(it,i);
|
||||
}else{
|
||||
r[i].has_insn_bits = 0;
|
||||
}
|
||||
break;
|
||||
case COMEDI_SUPPORTED:
|
||||
r[i].has_insn_bits = 1;
|
||||
break;
|
||||
case COMEDI_UNSUPPORTED:
|
||||
r[i].has_insn_bits = 0;
|
||||
break;
|
||||
default:
|
||||
assert(0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue