sr: fx2lafw: Handle the transfer's status
authorLars-Peter Clausen <lars@metafoo.de>
Sun, 24 Jun 2012 14:45:08 +0000 (16:45 +0200)
committerUwe Hermann <uwe@hermann-uwe.de>
Wed, 27 Jun 2012 22:40:52 +0000 (00:40 +0200)
commit12e81a310a431344fad31662fe8a071c4a3f8106
tree73d988bfc0ade70ec70b1258980916b56a240af3
parentc6d4f8c9dbeaa2f53d786062e105202200fd51ee
sr: fx2lafw: Handle the transfer's status

While errors are usually already implicitly caught by looking at the packet
length field there is one error status which is worth special handling. If the
device has been removed there is not really a chance to recover from this error
so data acquisition can be stopped immediately.

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