X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Finput%2Fchronovu_la8.c;fp=src%2Finput%2Fchronovu_la8.c;h=fcafdf5c9d7ba4dee3efe7ecf1676b6c45a4f58d;hb=8bc2fa6d820d05f88fa003baa9837ebc7663681d;hp=c654f242e37f2e6df6079a7e1795965afbc656fc;hpb=1fb31414f20f54dfeb9bc36256c98e4a19f3ee0a;p=libsigrok.git diff --git a/src/input/chronovu_la8.c b/src/input/chronovu_la8.c index c654f242..fcafdf5c 100644 --- a/src/input/chronovu_la8.c +++ b/src/input/chronovu_la8.c @@ -29,7 +29,7 @@ #define DEFAULT_NUM_CHANNELS 8 #define DEFAULT_SAMPLERATE SR_MHZ(100) -#define MAX_CHUNK_SIZE (4 * 1024) +#define CHUNK_SIZE (4 * 1024) #define CHRONOVU_LA8_FILESIZE ((8 * 1024 * 1024) + 5) struct context { @@ -110,7 +110,7 @@ static int process_buffer(struct sr_input *in) for (i = 0; i < chunk_size; i += chunk) { logic.data = in->buf->str + i; - chunk = MIN(MAX_CHUNK_SIZE, chunk_size - i); + chunk = MIN(CHUNK_SIZE, chunk_size - i); logic.length = chunk; sr_session_send(in->sdi, &packet); }