From: Bert Vermeulen Date: Sat, 15 Jan 2011 14:21:54 +0000 (+0100) Subject: fix hex output X-Git-Tag: libsigrok-0.1.0~433 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=f7606f9b75b1b4b2324635426f3cc52feda1e3aa;p=libsigrok.git fix hex output --- diff --git a/output/output_text.c b/output/output_text.c index 42fd1cac..2b362474 100644 --- a/output/output_text.c +++ b/output/output_text.c @@ -25,7 +25,7 @@ #include "config.h" #define DEFAULT_BPL_BITS 64 -#define DEFAULT_BPL_HEX 256 +#define DEFAULT_BPL_HEX 192 struct context { unsigned int num_enabled_probes; @@ -247,7 +247,7 @@ static int data_bits(struct output *o, char *data_in, uint64_t length_in, static int init_hex(struct output *o) { - return init(o, DEFAULT_BPL_BITS); + return init(o, DEFAULT_BPL_HEX); } static int data_hex(struct output *o, char *data_in, uint64_t length_in, @@ -321,7 +321,7 @@ struct output_format output_text_bits = { struct output_format output_text_hex = { "hex", - "Hexadecimal (takes argument, default 256)", + "Hexadecimal (takes argument, default 192)", DF_LOGIC, init_hex, data_hex,