Don't emit SBS output with non-ICAO addresses (fixes #9)

This commit is contained in:
Oliver Jowett 2015-02-08 14:30:10 +00:00
parent 899c51ce85
commit 20407e5378

View file

@ -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