patch from Ian Abbott <abbotti@mev.co.uk>:
authorFrank Mori Hess <fmhess@speakeasy.net>
Sun, 27 Feb 2005 22:45:14 +0000 (22:45 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Sun, 27 Feb 2005 22:45:14 +0000 (22:45 +0000)
commit8fdb92784a7a430cadd0fe67363e451f6214ee61
tree39ead79ba41f4cae00628874b7e8136c3d758a8e
parent0dc6fe9c33eee8b2857fae0bf0812f591ef18601
patch from Ian Abbott <abbotti@mev.co.uk>:

I was running "comedi_test -v" on my new analog output driver and
noticed that it was getting stuck in a loop during the
"cmd_write_fast_1_chan" test.

It turned out that the test had written more data to the buffer than was
required to complete the acquisition (it was using cmd->stop_src =
TRIG_COUNT) and then got stuck in a loop waiting for the buffer to empty.

The attached patch stops the test_cmd_write_fast_1chan function writing
more data than is required to complete the acquisition.
testing/cmd_1.c