From 650815964293a90e433da7d9e7efab3aaf0eff36 Mon Sep 17 00:00:00 2001 From: zhongjin Date: Thu, 10 Nov 2022 00:24:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'src/Network/fgcom.cxx'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Network/fgcom.cxx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/Network/fgcom.cxx b/src/Network/fgcom.cxx index 71d55ae..5e02e46 100644 --- a/src/Network/fgcom.cxx +++ b/src/Network/fgcom.cxx @@ -407,7 +407,7 @@ void FGCom::setupCommFrequency(int channel) { void FGCom::connectToCommFrequency() { // ensure that the current comm is still in range - SG_LOG(SG_SOUND,SG_INFO,"connectToCommFrequency"); + SG_LOG(SG_SOUND,SG_INFO,"connectToCommFrequency:" << _currentCallFrequency); if ((_currentCallFrequency > 0.0) && !isInRange(_currentCallFrequency)) { SG_LOG(SG_SOUND, SG_WARN, "FGCom: call out of range of: " << _currentCallFrequency); @@ -446,6 +446,9 @@ void FGCom::connectToCommFrequency() { } return; } + else + SG_LOG(SG_SOUND, SG_WARN, "FGCom: frequency"); + if (!num.empty()) { _currentCallIdent = iaxc_call(num.c_str()); if (_currentCallIdent == -1) @@ -744,6 +747,10 @@ std::string FGCom::computePhoneNumber(const double& freq, const std::string& ica bool FGCom::isInRange(const double &freq) const { + + // zhongjin 测试环境,始终返回1 + return 1; + for(size_t i=0; i