X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=controller.c;h=d7d3faf2999e074567e6ce9a60ab26d82fae7e70;hp=2355deea96a8ca651d9f55a34dfefae082a36aad;hb=dcdf48838748df02bc3028c4a26ea6d4506ee542;hpb=fa12a21e3c779df4e33dcfe394e2ded3f96028ce diff --git a/controller.c b/controller.c index 2355dee..d7d3faf 100644 --- a/controller.c +++ b/controller.c @@ -339,7 +339,7 @@ int srd_instance_set_probes(struct srd_decoder_instance *di, if (!(sl = g_slist_find_custom(di->decoder->probes, probe_id, (GCompareFunc)compare_probe_id))) { /* Fall back on optional probes. */ - if (!(sl = g_slist_find_custom(di->decoder->extra_probes, + if (!(sl = g_slist_find_custom(di->decoder->opt_probes, probe_id, (GCompareFunc)compare_probe_id))) { srd_err("Protocol decoder %s has no probe '%s'.", di->decoder->name, probe_id); @@ -395,7 +395,7 @@ struct srd_decoder_instance *srd_instance_new(const char *decoder_id, * order in which the decoder class defined them. */ di->dec_num_probes = g_slist_length(di->decoder->probes) + - g_slist_length(di->decoder->extra_probes); + g_slist_length(di->decoder->opt_probes); if (di->dec_num_probes) { if (!(di->dec_probemap = g_try_malloc(sizeof(int) * di->dec_num_probes))) { srd_err("Failed to malloc probe map.");