Update bestscore even if decoding fails so we register the number of "unknown ICAO" messages correctly.

This commit is contained in:
Oliver Jowett 2015-02-06 13:11:41 +00:00
parent 9381a20198
commit 965ac96493

View file

@ -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 the mode S message and see if it's any good.
score = scoreModesMessage(msg, i*8); score = scoreModesMessage(msg, i*8);
if (score < 0)
continue; // can't decode
if (score > bestscore) { if (score > bestscore) {
// new high score! // new high score!
bestmsg = msg; bestmsg = msg;