Default to not forwarding mlat messages. Add --forward-mlat option to enable it.

This commit is contained in:
Oliver Jowett 2015-07-03 21:56:23 +01:00
parent e5053ac5c9
commit 45d645a864
3 changed files with 7 additions and 0 deletions

View file

@ -637,6 +637,9 @@ static void send_sbs_heartbeat(struct net_service *service)
//=========================================================================
//
void modesQueueOutput(struct modesMessage *mm) {
if ((mm->bFlags & MODES_ACFLAGS_FROM_MLAT) && !Modes.forward_mlat)
return;
modesSendSBSOutput(mm);
modesSendBeastOutput(mm);
modesSendRawOutput(mm);