]> sigrok.org Git - libsigrok.git/commitdiff
asix-sigma: Quickfix for an ASIX SIGMA issue.
authorUwe Hermann <redacted>
Mon, 24 Dec 2012 15:57:55 +0000 (16:57 +0100)
committerUwe Hermann <redacted>
Mon, 24 Dec 2012 15:57:55 +0000 (16:57 +0100)
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

hardware/asix-sigma/asix-sigma.c

index 7ae16bc997c195b5d5e6bb4a7646649e4d68cff5..b4a9ebd463db666267e055182d8d872f32692cd2 100644 (file)
@@ -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;