#include <sigrok.h>
#include "text.h"
-
int init_bits(struct sr_output *o)
{
return init(o, DEFAULT_BPL_BITS, MODE_BITS);
char *outbuf, c;
ctx = o->internal;
- max_linelen = MAX_PROBENAME_LEN + 3 + ctx->samples_per_line
+ max_linelen = SR_MAX_PROBENAME_LEN + 3 + ctx->samples_per_line
+ ctx->samples_per_line / 8;
/*
* Calculate space needed for probes. Set aside 512 bytes for
return SR_OK;
}
-
struct sr_output_format output_text_bits = {
"bits",
"Bits (takes argument, default 64)",
data_bits,
event,
};
-