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