From: HÃ¥vard Espeland Date: Sat, 15 Jan 2011 18:19:49 +0000 (+0100) Subject: Sigma: Download samples from partial chunks. X-Git-Tag: libsigrok-0.1.0~424 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=31facdd3c5ca0c118d1216ce65c468db130bb751;p=libsigrok.git Sigma: Download samples from partial chunks. --- diff --git a/hardware/asix-sigma/asix-sigma.c b/hardware/asix-sigma/asix-sigma.c index 583501c0..af8e6d27 100644 --- a/hardware/asix-sigma/asix-sigma.c +++ b/hardware/asix-sigma/asix-sigma.c @@ -938,7 +938,7 @@ static int receive_data(int fd, int revents, void *user_data) fd = fd; revents = revents; - numchunks = sigma->state.stoppos / 512; + numchunks = (sigma->state.stoppos + 511) / 512; if (sigma->state.state == SIGMA_IDLE) return FALSE;