From 965ac96493160f10b9b7ea213e861be32a342752 Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Fri, 6 Feb 2015 13:11:41 +0000 Subject: [PATCH] Update bestscore even if decoding fails so we register the number of "unknown ICAO" messages correctly. --- demod_2400.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/demod_2400.c b/demod_2400.c index b25f32b..b98cf0d 100644 --- a/demod_2400.c +++ b/demod_2400.c @@ -399,9 +399,6 @@ void demodulate2400(uint16_t *m, uint32_t mlen) { // Score the mode S message and see if it's any good. score = scoreModesMessage(msg, i*8); - if (score < 0) - continue; // can't decode - if (score > bestscore) { // new high score! bestmsg = msg;