From c4af23212178e01e5b5016d0d50fbd2d825615ae Mon Sep 17 00:00:00 2001 From: Guido Trentalancia Date: Wed, 30 Jan 2019 00:52:41 +0100 Subject: [PATCH] Fix listing of some configuration options. The listing of the following configuration options is currently broken in sigrok-cli (invalid values are displayed): - "timebase" in yokogawa-dlm, rohde-schwarz-hameg, hantek-dso, lecroy-xstream, siglent-sds and rigol-ds drivers; - "vdiv" in hantek-6xxx, yokogawa-dlm, rohde-schwarz-hameg, hantek-dso, lecroy-xstream, hung-chang-dso-2100, siglent-sds and rigol-ds drivers; - "spl_meas_range" in pce-322a and cem-dt-885x drivers. Fixes bug #1331. Signed-off-by: Guido Trentalancia --- show.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/show.c b/show.c index 533ab1e..73240ee 100644 --- a/show.c +++ b/show.c @@ -321,7 +321,8 @@ void show_dev_detail(void) GVariant *gvar_dict, *gvar_list, *gvar; gsize num_elements; double dlow, dhigh, dcur_low, dcur_high; - const uint64_t *uint64, p = 0, q = 0, low = 0, high = 0; + const uint64_t *uint64; + uint64_t p = 0, q = 0, low = 0, high = 0; uint64_t tmp_uint64, mask, cur_low, cur_high, cur_p, cur_q; GArray *opts; const int32_t *int32; -- 2.30.2