]> sigrok.org Git - libsigrok.git/commitdiff
rigol-ds: brown paper bag, using timebases instead of vdivs.
authorMartin Ling <redacted>
Fri, 1 Nov 2013 21:49:05 +0000 (21:49 +0000)
committerMartin Ling <redacted>
Fri, 29 Nov 2013 00:55:20 +0000 (00:55 +0000)
hardware/rigol-ds/api.c

index 453ed1581a8e26ae67507a3cc020484f3ca1e349..cb9c2975c7be66f8e77edd935869eb06dac422a1 100644 (file)
@@ -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]);
                }
        }