From 495f46f233e3c273aab01c36ccc2131d1f4407b2 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Sun, 7 Sep 2003 03:44:30 +0000 Subject: [PATCH] fix increment of munge_chan --- comedi/drivers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comedi/drivers.c b/comedi/drivers.c index a74a236d..526258c2 100644 --- a/comedi/drivers.c +++ b/comedi/drivers.c @@ -479,7 +479,7 @@ void comedi_buf_munge( comedi_device *dev, comedi_subdevice *s, s->munge( dev, s, s->async->prealloc_buf + offset, block_size, s->async->munge_chan ); - s->async->munge_chan += num_bytes / bytes_per_sample( s ); + s->async->munge_chan += block_size / bytes_per_sample( s ); s->async->munge_chan %= s->async->cmd.chanlist_len; num_bytes -= block_size; offset = 0; -- 2.26.2