ftdi-la: order the channels properly
This commit is contained in:
parent
4801798f63
commit
c04ca4da17
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue