From: David Schleef Date: Thu, 25 Jul 2002 23:33:20 +0000 (+0000) Subject: Stop running on error conditions. X-Git-Tag: r0_7_66~126 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=352f64971add34280ec24b0b197185ba9603924e;p=comedi.git Stop running on error conditions. --- diff --git a/comedi/comedi_fops.c b/comedi/comedi_fops.c index 3f9434ba..46ba591a 100644 --- a/comedi/comedi_fops.c +++ b/comedi/comedi_fops.c @@ -1791,13 +1791,13 @@ void comedi_event(comedi_device *dev,comedi_subdevice *s, unsigned int mask) if( (s->subdev_flags & SDF_RUNNING) == 0) return; - if(mask&COMEDI_CB_EOA){ + if(mask&(COMEDI_CB_EOA|COMEDI_CB_ERROR|COMEDI_CB_OVERFLOW)){ s->subdev_flags &= ~SDF_RUNNING; } /* remember if an error event has occured, so an error * can be returned the next time the user does a read() */ - if(mask & COMEDI_CB_ERROR){ + if(mask & (COMEDI_CB_ERROR|COMEDI_CB_OVERFLOW)){ s->runflags |= SRF_ERROR; } if(async->cb_mask&mask){