when accessing devc->device->channels in config_list().
this array has to be accessed via the "hw_output_idx"
This fixes bug #1533.
{
struct dev_context *devc;
struct sr_channel *ch;
+ struct pps_channel *pch;
const struct channel_spec *ch_spec;
int i;
const char *s[16];
* specification for use in series or parallel mode.
*/
ch = cg->channels->data;
+ pch = ch->priv;
if (!devc || !devc->device)
return SR_ERR_ARG;
- ch_spec = &(devc->device->channels[ch->index]);
+ ch_spec = &(devc->device->channels[pch->hw_output_idx]);
switch (key) {
case SR_CONF_DEVICE_OPTIONS: