X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-cli.git;a=blobdiff_plain;f=decode.c;h=0b7d9ee49e200cf6b8fa4010f9f869cdbe209772;hp=c62722eb301740ce2cda68b0813d69ab8fe7a5af;hb=342ad7895e3beeea0035c38c2439189a3ae270c9;hpb=b39f3a1a12b4a79b9a2d2a005b2474483438fa2a diff --git a/decode.c b/decode.c index c62722e..0b7d9ee 100644 --- a/decode.c +++ b/decode.c @@ -179,7 +179,7 @@ int register_pds(const char *opt_pds, char *opt_pd_annotations) g_strdup(di->inst_id), GINT_TO_POINTER(-1)); /* Remap the probes if needed. */ - if (srd_inst_probe_set_all(di, probes) != SRD_OK) { + if (srd_inst_probe_set_all(di, probes, (g_hash_table_size(probes) + 7) / 8) != SRD_OK) { ret = 1; break; }