From: Martin Ling Date: Fri, 1 Nov 2013 21:49:05 +0000 (+0000) Subject: rigol-ds: brown paper bag, using timebases instead of vdivs. X-Git-Tag: libsigrok-0.3.0~524 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=6ff1394ed1be4700123e9c6165128eb39f294648;p=libsigrok.git rigol-ds: brown paper bag, using timebases instead of vdivs. --- diff --git a/hardware/rigol-ds/api.c b/hardware/rigol-ds/api.c index 453ed158..cb9c2975 100644 --- a/hardware/rigol-ds/api.c +++ b/hardware/rigol-ds/api.c @@ -311,8 +311,8 @@ static int probe_port(const char *port, GSList **devices) for (i = 0; i < NUM_VDIV; i++) { if (!memcmp(&devc->model->min_vdiv, &vdivs[i], sizeof(uint64_t[2]))) { - devc->vdivs = &timebases[i]; - devc->num_vdivs = NUM_VDIV - (&timebases[i] - &timebases[0]); + devc->vdivs = &vdivs[i]; + devc->num_vdivs = NUM_VDIV - (&vdivs[i] - &vdivs[0]); } }