fixed overwriting of cb_mask.
authorDavid Schleef <ds@schleef.org>
Fri, 25 May 2001 02:24:22 +0000 (02:24 +0000)
committerDavid Schleef <ds@schleef.org>
Fri, 25 May 2001 02:24:22 +0000 (02:24 +0000)
comedi/kcomedilib/kcomedilib_main.c

index 3443c5df698f5fe0972952796b61870f35375938..0e67b43a02ca3a9d98c7d13e0faab73287792d14 100644 (file)
@@ -377,7 +377,7 @@ int comedi_command(unsigned int minor,comedi_cmd *cmd)
        if(async == NULL)
                return -ENODEV;
 
-       async->cb_mask = COMEDI_CB_EOA|COMEDI_CB_BLOCK|COMEDI_CB_ERROR;
+       async->cb_mask |= COMEDI_CB_EOA|COMEDI_CB_BLOCK|COMEDI_CB_ERROR;
 
        async->cmd=*cmd;