X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Finput%2Flogicport.c;h=9986e0de0b7225d07f28b402ce56ae37ca99b75c;hb=24801f4e805f5aa779a9cdff0cec42510dd1fb07;hp=99ad2c84cce6ea446ff83c0d7cf5aed29f1d9a79;hpb=7102443a4adb1743c5a053deee8fd2a93670fc19;p=libsigrok.git diff --git a/src/input/logicport.c b/src/input/logicport.c index 99ad2c84..9986e0de 100644 --- a/src/input/logicport.c +++ b/src/input/logicport.c @@ -1022,7 +1022,7 @@ static int prepare_session_feed(struct sr_input *in) return SR_OK; } -static int format_match(GHashTable *metadata) +static int format_match(GHashTable *metadata, unsigned int *confidence) { GString *buf, *tmpbuf; int rc; @@ -1041,6 +1041,7 @@ static int format_match(GHashTable *metadata) if (rc == SR_OK && version && build) { sr_dbg("Looks like a LogicProbe project, version %s, build %s.", version, build); + *confidence = 1; } g_string_free(tmpbuf, TRUE);