From 92136f3807c10dda94ce89fb854a46ee053c6adf Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Thu, 15 Sep 2016 15:00:44 +0100 Subject: [PATCH] faup1090: only report airGround if we got a message confirming it since the last update. --- net_io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net_io.c b/net_io.c index e6759ba..35e94d9 100644 --- a/net_io.c +++ b/net_io.c @@ -2007,7 +2007,7 @@ static void writeFATSV() useful = 1; } - if (airgroundValid && (a->airground == AG_GROUND || a->airground == AG_AIRBORNE)) { + if (airgroundValid && (a->airground == AG_GROUND || a->airground == AG_AIRBORNE) && a->airground_valid.updated > a->fatsv_last_emitted) { p += snprintf(p, bufsize(p,end), "\tairGround\t%s", a->airground == AG_GROUND ? "G+" : "A+"); a->fatsv_emitted_airground = a->airground; if (a->airground_valid.source == SOURCE_TISB) {