Skip to content

Commit

Permalink
ignore non-CRC messages after 30 seconds of last CRC message (was 45)
Browse files Browse the repository at this point in the history
  • Loading branch information
wiedehopf committed Jan 21, 2025
1 parent d3aa118 commit 0654536
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion track.c
Original file line number Diff line number Diff line change
Expand Up @@ -1950,7 +1950,7 @@ struct aircraft *trackUpdateFromMessage(struct modesMessage *mm) {
}

// don't use messages with unreliable CRC too long after receiving a reliable address from an aircraft
if (now - a->seen > 45 * SECONDS) {
if (now - a->seen > 30 * SECONDS) {
res = NULL;
goto exit;
}
Expand Down

0 comments on commit 0654536

Please sign in to comment.