]> sigrok.org Git - libsigrok.git/commit
sr: fx2lafw: Do not start a new acquisition if the old is still running
authorLars-Peter Clausen <redacted>
Tue, 3 Jul 2012 21:58:39 +0000 (23:58 +0200)
committerBert Vermeulen <redacted>
Tue, 3 Jul 2012 23:11:50 +0000 (01:11 +0200)
commitc03f045004a340bd418206cbd02eaefcede91a5b
tree94aafdb9aefe40d933c6b3ba05e37fd7fa6f3af4
parent0caa1ef0cb0b2231e232a7d1681e4e13fe838035
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 <redacted>
hardware/fx2lafw/fx2lafw.c