Skip to content

Commit

Permalink
apply filter-DF to displayModesMessage
Browse files Browse the repository at this point in the history
this was a bug introduced in 4d0588d
displayModesMessage was moved out of outputMessage which at the start of
the function returned when the df type was not in the filter bitset
  • Loading branch information
wiedehopf committed May 21, 2024
1 parent ff9465a commit 2686e9a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion track.c
Original file line number Diff line number Diff line change
Expand Up @@ -2650,7 +2650,10 @@ struct aircraft *trackUpdateFromMessage(struct modesMessage *mm) {
|| (Modes.show_only != BADDR && (mm->addr == Modes.show_only || mm->maybe_addr == Modes.show_only))
|| (Modes.debug_7700 && ac && ac->squawk == 0x7700 && trackDataValid(&ac->squawk_valid))
) {
displayModesMessage(mm);
// filter messages with unwanted DF types (sbs_in are unknown DF type, filter them all, this is arbitrary but no one cares anyway)
if (!(Modes.filterDF && (mm->sbs_in || !(Modes.filterDFbitset & (1 << mm->msgtype))))) {
displayModesMessage(mm);
}
}

if (Modes.debug_bogus) {
Expand Down

0 comments on commit 2686e9a

Please sign in to comment.