Don't track icao 000000 as an aircraft
(but do still decode messages for it)
This commit is contained in:
parent
abfb88b124
commit
f323745ead
1 changed files with 5 additions and 0 deletions
5
track.c
5
track.c
|
@ -814,6 +814,11 @@ struct aircraft *trackUpdateFromMessage(struct modesMessage *mm)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
if (mm->addr == 0) {
|
||||
// junk address, don't track it
|
||||
return NULL;
|
||||
}
|
||||
|
||||
_messageNow = mm->sysTimestampMsg;
|
||||
|
||||
// Lookup our aircraft or create a new one
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue