From: Uwe Hermann Date: Mon, 24 Dec 2012 15:57:55 +0000 (+0100) Subject: asix-sigma: Quickfix for an ASIX SIGMA issue. X-Git-Tag: dsupstream~416 X-Git-Url: https://sigrok.org/gitweb/?a=commitdiff_plain;h=dc890b8f9fa01895d3849e7d5ab8be1146f07b9e;p=libsigrok.git asix-sigma: Quickfix for an ASIX SIGMA issue. It's not entirely clear whether this is the right fix, but we're merging it for now, pending later review. See also: http://sigrok.org/bugzilla/show_bug.cgi?id=26 --- diff --git a/hardware/asix-sigma/asix-sigma.c b/hardware/asix-sigma/asix-sigma.c index 7ae16bc9..b4a9ebd4 100644 --- a/hardware/asix-sigma/asix-sigma.c +++ b/hardware/asix-sigma/asix-sigma.c @@ -1067,7 +1067,9 @@ static int receive_data(int fd, int revents, void *cb_data) else hw_dev_acquisition_stop(sdi, sdi); - } else if (devc->state.state == SIGMA_DOWNLOAD) { + } + + if (devc->state.state == SIGMA_DOWNLOAD) { if (devc->state.chunks_downloaded >= numchunks) { /* End of samples. */ packet.type = SR_DF_END;