X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Finput%2Fbinary.c;h=da664a85e6f140d14de0c8796a6adc76e3034e8c;hb=419f10950500d37489db3e3842670ac49e3607e7;hp=223efd88089bd1fa78f2eeaec0f429cab01829ec;hpb=408b6ab42beb76a4854d5885b81ffcd8914dbf34;p=libsigrok.git diff --git a/src/input/binary.c b/src/input/binary.c index 223efd88..da664a85 100644 --- a/src/input/binary.c +++ b/src/input/binary.c @@ -29,7 +29,7 @@ #define LOG_PREFIX "input/binary" -#define MAX_CHUNK_SIZE 4096 +#define CHUNK_SIZE (4 * 1024 * 1024) #define DEFAULT_NUM_CHANNELS 8 #define DEFAULT_SAMPLERATE 0 @@ -102,7 +102,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); } @@ -174,7 +174,7 @@ static const struct sr_option *get_options(void) SR_PRIV struct sr_input_module input_binary = { .id = "binary", .name = "Binary", - .desc = "Raw binary", + .desc = "Raw binary logic data", .exts = NULL, .options = get_options, .init = init,