From: Sergey Alirzaev Date: Thu, 14 Apr 2016 11:17:49 +0000 (+0300) Subject: ftdi-la: order the channels properly X-Git-Tag: libsigrok-0.5.0~511 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=c04ca4da177bbd718be4de11e40a4ef5cbf3df7a;p=libsigrok.git ftdi-la: order the channels properly --- 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);