Don't track icao 000000 as an aircraft

(but do still decode messages for it)
This commit is contained in:
Oliver Jowett 2018-02-23 18:10:26 +00:00
parent abfb88b124
commit f323745ead

View file

@ -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