faup1090: only report airGround if we got a message confirming it since the last update.
This commit is contained in:
parent
001f4956ea
commit
92136f3807
2
net_io.c
2
net_io.c
|
@ -2007,7 +2007,7 @@ static void writeFATSV()
|
||||||
useful = 1;
|
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+");
|
p += snprintf(p, bufsize(p,end), "\tairGround\t%s", a->airground == AG_GROUND ? "G+" : "A+");
|
||||||
a->fatsv_emitted_airground = a->airground;
|
a->fatsv_emitted_airground = a->airground;
|
||||||
if (a->airground_valid.source == SOURCE_TISB) {
|
if (a->airground_valid.source == SOURCE_TISB) {
|
||||||
|
|
Loading…
Reference in a new issue