Simple filter for spurious messages that make it past checksum:

don't show aircraft until we have seen 2 messages from them.
This commit is contained in:
Oliver Jowett 2015-01-22 13:22:16 +00:00
parent 7500cabb08
commit 70e8579850
2 changed files with 10 additions and 6 deletions

View file

@ -538,7 +538,7 @@ void interactiveShowData(void) {
int msgs = a->messages;
int flags = a->modeACflags;
if ( (((flags & (MODEAC_MSG_FLAG )) == 0 ) )
if ( (((flags & (MODEAC_MSG_FLAG )) == 0 ) && (msgs > 1 ) )
|| (((flags & (MODEAC_MSG_MODES_HIT | MODEAC_MSG_MODEA_ONLY)) == MODEAC_MSG_MODEA_ONLY) && (msgs > 4 ) )
|| (((flags & (MODEAC_MSG_MODES_HIT | MODEAC_MSG_MODEC_OLD )) == 0 ) && (msgs > 127) )
) {