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 <gu...@trentalancia.com>
---
 show.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff -pru sigrok-cli-orig/show.c sigrok-cli-fix-option-value-listing/show.c
--- sigrok-cli-orig/show.c      2018-10-20 13:13:37.136966695 +0200
+++ sigrok-cli-fix-option-value-listing/show.c  2018-11-18 23:16:24.907891178 
+0100
@@ -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;


_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to