Round to 8.33 kHz channel when receiving text messages

Related to #186
This commit is contained in:
Lars Toenning
2023-02-07 18:45:24 +01:00
parent ab3203043c
commit cc6f0d151d

View File

@@ -1217,8 +1217,7 @@ namespace BlackCore::Fsd
for (int freqKhz : textMessage.m_frequencies)
{
CFrequency f(freqKhz, CFrequencyUnit::kHz());
// VATSIM always drops the last 5 kHz. So round it to the correct channel spacing.
CComSystem::roundToChannelSpacing(f, CComSystem::ChannelSpacing25KHz);
CComSystem::roundToChannelSpacing(f, CComSystem::ChannelSpacing8_33KHz);
if (f == com1 || f == com2)
{
frequencies.push_back(f);