X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;ds=inline;f=decode.c;h=2e831f74ee1985a735e3da027a933ea2d3328bca;hb=15db66c6a90ea967264b66b80d381b89847e3afa;hp=b020b68baab2ea14aedfea89ee202179216ce2c7;hpb=a23105b12a31ce9f329cf73f5536d003cea9e243;p=sigrok-cli.git diff --git a/decode.c b/decode.c index b020b68..2e831f7 100644 --- a/decode.c +++ b/decode.c @@ -250,9 +250,13 @@ static void map_pd_inst_channels(void *key, void *value, void *user_data) void map_pd_channels(struct sr_dev_inst *sdi) { + GSList *channels; + + channels = sr_dev_inst_channels_get(sdi); + if (pd_channel_maps) { g_hash_table_foreach(pd_channel_maps, &map_pd_inst_channels, - sdi->channels); + channels); g_hash_table_destroy(pd_channel_maps); pd_channel_maps = NULL; }