fix COMEDI_SUBD_UNUSED bug
authorDavid Schleef <ds@schleef.org>
Mon, 6 Mar 2000 08:25:58 +0000 (08:25 +0000)
committerDavid Schleef <ds@schleef.org>
Mon, 6 Mar 2000 08:25:58 +0000 (08:25 +0000)
lib/filler.c

index c657fe4ade7c2ec577c68bfbfb24bb18610e4b22..dde1e0e095b6838ad43793339483c8014b1616e0 100644 (file)
@@ -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;