Adapt channel comparison for 8.33 kHz spacing

Related to #186
This commit is contained in:
Lars Toenning
2023-02-06 00:23:26 +01:00
parent ebe59bcae5
commit a96d792e25
6 changed files with 25 additions and 48 deletions

View File

@@ -493,11 +493,11 @@ namespace BlackMisc::Simulation::Settings
const CFrequency f(msg.getFrequency());
if (mt.testFlag(TextMessagesCom1))
{
if (aircraft.getCom1System().isActiveFrequencyWithin8_33kHzChannel(f)) { return true; }
if (aircraft.getCom1System().isActiveFrequencySameFrequency(f)) { return true; }
}
if (mt.testFlag(TextMessagesCom2))
{
if (aircraft.getCom2System().isActiveFrequencyWithin8_33kHzChannel(f)) { return true; }
if (aircraft.getCom2System().isActiveFrequencySameFrequency(f)) { return true; }
}
}
return false;