Skip to content

Commit

Permalink
Avoid forwarding of old messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mictronics committed Jan 28, 2022
1 parent 3e61879 commit e199f5f
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions mode_s.c
Expand Up @@ -2162,18 +2162,14 @@ void useModesMessage(struct modesMessage *mm) {
// forward messages when we have seen two of them.

if (Modes.net && !mm->sbs_in) {
if (Modes.net_verbatim || mm->msgtype == 32 || !a) {
if (Modes.net_verbatim || !a || Modes.net_only) {
// Unconditionally send
modesQueueOutput(mm, a);
} else if (a->meta.messages > 1) {
// Suppress the first message. When we receive a second message,
// emit the first two messages.
if (a->meta.messages == 2) {
modesQueueOutput(&a->first_message, a);
}
} else if (a->meta.messages > 1) {
// Suppress the first message when using an SDR
modesQueueOutput(mm, a);
}
}
}
}

//
Expand Down

0 comments on commit e199f5f

Please sign in to comment.