fix increment of munge_chan
authorFrank Mori Hess <fmhess@speakeasy.net>
Sun, 7 Sep 2003 03:44:30 +0000 (03:44 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Sun, 7 Sep 2003 03:44:30 +0000 (03:44 +0000)
comedi/drivers.c

index a74a236de3ecf2110ab53cc0ec5fecf5326cec47..526258c22504690b1800dc11d31c6ae5307b4661 100644 (file)
@@ -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;