ftdi-la: order the channels properly

This commit is contained in:
Sergey Alirzaev 2016-04-14 14:17:49 +03:00 committed by Uwe Hermann
parent 4801798f63
commit c04ca4da17
1 changed files with 1 additions and 1 deletions

View File

@ -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);