From: Ian Abbott Date: Mon, 3 Dec 2007 14:47:00 +0000 (+0000) Subject: Report error event when command stopped due to buffer overflow. X-Git-Tag: v0_7_76~34 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a9fcd97a607281e5a016d8161d598cb4d64414f1;p=comedi.git Report error event when command stopped due to buffer overflow. --- diff --git a/comedi/drivers/amplc_dio200.c b/comedi/drivers/amplc_dio200.c index 7d5141e5..f461fc50 100644 --- a/comedi/drivers/amplc_dio200.c +++ b/comedi/drivers/amplc_dio200.c @@ -728,6 +728,9 @@ static int dio200_handle_read_intr(comedi_device * dev, comedi_subdevice * s) } else { /* Error! Stop acquisition. */ dio200_stop_intr(dev, s); + s->async->events |= COMEDI_CB_ERROR + | COMEDI_CB_OVERFLOW; + comedi_error(dev, "buffer overflow"); } /* Check for end of acquisition. */