From c04ca4da177bbd718be4de11e40a4ef5cbf3df7a Mon Sep 17 00:00:00 2001 From: Sergey Alirzaev Date: Thu, 14 Apr 2016 14:17:49 +0300 Subject: [PATCH] ftdi-la: order the channels properly --- src/hardware/ftdi-la/api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hardware/ftdi-la/api.c b/src/hardware/ftdi-la/api.c index cd70bb7f..d9936e70 100644 --- a/src/hardware/ftdi-la/api.c +++ b/src/hardware/ftdi-la/api.c @@ -162,7 +162,7 @@ static GSList *scan(struct sr_dev_driver *di, GSList *options) sdi->priv = devc; for (char *const *chan = &(desc->channel_names[0]); *chan; chan++) - sr_channel_new(sdi, &(desc->channel_names[0]) - chan, + sr_channel_new(sdi, chan - &(desc->channel_names[0]), SR_CHANNEL_LOGIC, TRUE, *chan); devices = g_slist_append(devices, sdi);