Update bestscore even if decoding fails so we register the number of "unknown ICAO" messages correctly.
This commit is contained in:
parent
9381a20198
commit
965ac96493
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue