From 352f64971add34280ec24b0b197185ba9603924e Mon Sep 17 00:00:00 2001 From: David Schleef Date: Thu, 25 Jul 2002 23:33:20 +0000 Subject: [PATCH] Stop running on error conditions. --- comedi/comedi_fops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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){ -- 2.26.2