]> sigrok.org Git - libsigrok.git/commitdiff
rigol-ds: Fix duplicated "LA" probe group.
authorMartin Ling <redacted>
Fri, 29 Nov 2013 01:40:50 +0000 (01:40 +0000)
committerMartin Ling <redacted>
Fri, 29 Nov 2013 01:40:50 +0000 (01:40 +0000)
hardware/rigol-ds/api.c

index 31342c23321280add9dd87be37ff033009ae713b..8047b686902a679cc5c8b5fccc39daedf75c5fcb 100644 (file)
@@ -309,10 +309,10 @@ static int probe_port(const char *port, GSList **devices)
                        sdi->probes = g_slist_append(sdi->probes, probe);
                        devc->digital_group.probes = g_slist_append(
                                        devc->digital_group.probes, probe);
-                       devc->digital_group.name = "LA";
-                       sdi->probe_groups = g_slist_append(sdi->probe_groups,
-                                       &devc->digital_group);
                }
+               devc->digital_group.name = "LA";
+               sdi->probe_groups = g_slist_append(sdi->probe_groups,
+                               &devc->digital_group);
        }
 
        for (i = 0; i < NUM_TIMEBASE; i++) {