From ad9ee2b842c263261788112ecb332c71c747611f Mon Sep 17 00:00:00 2001 From: zhongjin Date: Tue, 6 Dec 2022 16:16:20 +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 | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/Network/fgcom.cxx b/src/Network/fgcom.cxx index 3b15082..b738e5c 100644 --- a/src/Network/fgcom.cxx +++ b/src/Network/fgcom.cxx @@ -531,9 +531,9 @@ void FGCom::connectToCommFrequency() { // SG_LOG(SG_SOUND, SG_ALERT, "FGCom: iaxc_call(" << num << ") _currentCallIdent=" << _currentCallIdent); if (_currentCallIdent == -1) - // SG_LOG(SG_SOUND, SG_ALERT, "FGCom: cannot call " << num.c_str()); + SG_LOG(SG_SOUND, SG_ALERT, "FGCom: cannot call " << num.c_str()); else { - // SG_LOG(SG_SOUND, SG_ALERT, "FGCom: call established " << num.c_str() << " Freq: " << _currentCommFrequency); + SG_LOG(SG_SOUND, SG_ALERT, "FGCom: call established " << num.c_str() << " Freq: " << _currentCommFrequency); _currentCallFrequency = _currentCommFrequency; _connected = true; } @@ -546,10 +546,8 @@ void FGCom::connectToCommFrequency() { void FGCom::updateCall() { - //SG_LOG(SG_SOUND,SG_ALERT,"updateCall()"); - - if (_processingTimer.elapsedMSec() > IAX_DELAY) { + if (_processingTimer.elapsedMSec() > IAX_DELAY) { _processingTimer.stamp(); connectToCommFrequency(); @@ -656,6 +654,10 @@ void FGCom::valueChanged(SGPropertyNode *prop) //SG_LOG(SG_SOUND, SG_INFO, "CMD :" << urlcmd ); //system(urlcmd.c_str()); + // SGPath dbpath( globals->get_fg_root() ); + //dbpath.append( "/AI/Aircraft/" ); + + }