Tweak when we allow updates to air/ground status.
This commit is contained in:
parent
571ea7ac41
commit
2ce2af1685
2 changed files with 15 additions and 2 deletions
6
track.h
6
track.h
|
|
@ -259,6 +259,12 @@ static inline int trackDataValid(const data_validity *v)
|
|||
return (v->source != SOURCE_INVALID && messageNow() < v->expires);
|
||||
}
|
||||
|
||||
/* is this bit of data fresh? */
|
||||
static inline int trackDataFresh(const data_validity *v)
|
||||
{
|
||||
return (v->source != SOURCE_INVALID && messageNow() < v->stale);
|
||||
}
|
||||
|
||||
/* what's the age of this data, in milliseconds? */
|
||||
static inline uint64_t trackDataAge(const data_validity *v)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue