From 68d964b5c7435f3977c2cb01064908ecee97eeda Mon Sep 17 00:00:00 2001 From: Nico Palermo/IV3NWV Date: Tue, 1 Dec 2020 03:41:23 +0100 Subject: [PATCH] merged Joe's changes in decode_fullaplist --- lib/qra/q65/q65.c | 4 +++- lib/qra/q65/q65.h | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/qra/q65/q65.c b/lib/qra/q65/q65.c index 46d88301c..ddd764615 100644 --- a/lib/qra/q65/q65.c +++ b/lib/qra/q65/q65.c @@ -712,7 +712,9 @@ int q65_decode_fullaplist(q65_codec_ds *codec, // point to next codeword pCw+=nN; } - q65_llh=maxllh; + + q65_llh=maxllh; // save for Joe's use + if (maxcw<0) // no llh larger than threshold found return Q65_DECODE_FAILED; diff --git a/lib/qra/q65/q65.h b/lib/qra/q65/q65.h index 94f6d568c..9e3d79adb 100644 --- a/lib/qra/q65/q65.h +++ b/lib/qra/q65/q65.h @@ -39,7 +39,8 @@ // maximum number of weights for the fast-fading metric evaluation #define Q65_FASTFADING_MAXWEIGTHS 65 -float q65_llh; +extern float q65_llh; + typedef struct { const qracode *pQraCode; // qra code to be used by the codec float decoderEsNoMetric; // value for which we optimize the decoder metric