更新 'src/Network/fgcom.cxx'

This commit is contained in:
zhongjin 2022-11-09 23:09:46 +08:00
parent 26e03ff950
commit c5fb798d74

View File

@ -406,6 +406,9 @@ void FGCom::setupCommFrequency(int channel) {
void FGCom::connectToCommFrequency() {
// ensure that the current comm is still in range
SG_LOG(SG_SOUND,SG_INFO,"connectToCommFrequency");
if ((_currentCallFrequency > 0.0) && !isInRange(_currentCallFrequency)) {
SG_LOG(SG_SOUND, SG_WARN, "FGCom: call out of range of: " << _currentCallFrequency);
_currentCallFrequency = 0.0;