]> sigrok.org Git - libsigrok.git/commitdiff
dslogic: Renamed D0-16 channels to 0-16
authorJoel Holdsworth <redacted>
Mon, 12 Jun 2017 23:08:55 +0000 (17:08 -0600)
committerUwe Hermann <redacted>
Mon, 19 Jun 2017 22:18:16 +0000 (00:18 +0200)
src/hardware/dslogic/api.c

index a47f3fe73e4a867ee0b6ef0d4cb30ffd0b1dafba..8552de89f69db465fbc4c4caaee34c1ea22ce3a6 100644 (file)
@@ -244,7 +244,7 @@ static GSList *scan(struct sr_dev_driver *di, GSList *options)
                cg = g_malloc0(sizeof(struct sr_channel_group));
                cg->name = g_strdup("Logic");
                for (j = 0; j < 16; j++) {
-                       sprintf(channel_name, "D%d", j);
+                       sprintf(channel_name, "%d", j);
                        ch = sr_channel_new(sdi, j, SR_CHANNEL_LOGIC,
                                                TRUE, channel_name);
                        cg->channels = g_slist_append(cg->channels, ch);