X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Finput%2Fbinary.c;h=da664a85e6f140d14de0c8796a6adc76e3034e8c;hb=b8fcae5a128e2ca3143e05a799f80852ebd911b7;hp=f0c798faed538aed5901d46223d7067cb338d073;hpb=a33e4be8260032d8d85c25502cc934f91ba73812;p=libsigrok.git diff --git a/src/input/binary.c b/src/input/binary.c index f0c798fa..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 (4 * 1024 * 1024) +#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,