sr: fx2lafw: Do not start a new acquisition if the old is still running
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 3 Jul 2012 21:58:39 +0000 (23:58 +0200)
committerBert Vermeulen <bert@biot.com>
Tue, 3 Jul 2012 23:11:50 +0000 (01:11 +0200)
commit24274d061040835179218e2e5a83723537773a65
tree612abec2c2d69a43c429c57996084788c77ef530
parentfcf61b6a47c488bc1bf8448cf8a895f29b875aec
sr: fx2lafw: Do not start a new acquisition if the old is still running

This may happen if the acquisition_start is called right after calling
acquisition_stop and not all transfers have been freed or on repeated calls to
acquisition_start. If it happens we'll enter an undefined state and all kind of
strange behavior may occur, so error out in such a case.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
libsigrok/hardware/fx2lafw/fx2lafw.c