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
else
hw_dev_acquisition_stop(sdi, sdi);
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;
if (devc->state.chunks_downloaded >= numchunks) {
/* End of samples. */
packet.type = SR_DF_END;