X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-cli.git;a=blobdiff_plain;f=decode.c;h=0b7d9ee49e200cf6b8fa4010f9f869cdbe209772;hp=c62722eb301740ce2cda68b0813d69ab8fe7a5af;hb=6df458b71ace93941780153b79b348d4fd99493d;hpb=5ff52594370440308134eff32ae06d5ee9b13ee0 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; }