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
This commit is contained in:
Uwe Hermann 2012-12-24 16:57:55 +01:00
parent b36e715395
commit dc890b8f9f
1 changed files with 3 additions and 1 deletions

View 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;