From f323745ead5c9cb18f552c6df62296bb9bc19be3 Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Fri, 23 Feb 2018 18:10:26 +0000 Subject: [PATCH] Don't track icao 000000 as an aircraft (but do still decode messages for it) --- track.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/track.c b/track.c index 9fa626a..b550e97 100644 --- a/track.c +++ b/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