'j' is the loop variable for channels, not 'i'.
This fixes parts of bug #844.
Reported-by: Maxim Sloyko <redacted>
Signed-off-by: Wolfram Sang <redacted>
sample = logic->data + i;
idx = ctx->channels[ch].ch->index;
if (ctx->label_do && !ctx->label_names)
- ctx->channels[i].label = "logic";
+ ctx->channels[j].label = "logic";
ctx->logic_samples[i * ctx->num_logic_channels + ch] = sample[idx / 8] & (1 << (idx % 8));
}
ch++;