From 20407e537800ef528321fe811be5dc78d78e60e9 Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Sun, 8 Feb 2015 14:30:10 +0000 Subject: [PATCH] Don't emit SBS output with non-ICAO addresses (fixes #9) --- net_io.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/net_io.c b/net_io.c index 08842bb..c328c85 100644 --- a/net_io.c +++ b/net_io.c @@ -356,6 +356,10 @@ void modesSendSBSOutput(struct modesMessage *mm) { if (!p) return; + // For now, suppress non-ICAO addresses + if (mm->addr & MODES_NON_ICAO_ADDRESS) + return; + // // SBS BS style output checked against the following reference // http://www.homepages.mcb.net/bones/SBS/Article/Barebones42_Socket_Data.htm - seems comprehensive