From a9fcd97a607281e5a016d8161d598cb4d64414f1 Mon Sep 17 00:00:00 2001 From: Ian Abbott Date: Mon, 3 Dec 2007 14:47:00 +0000 Subject: [PATCH] Report error event when command stopped due to buffer overflow. --- comedi/drivers/amplc_dio200.c | 3 +++ 1 file changed, 3 insertions(+) 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. */ -- 2.26.2