更新 'src/Network/fgcom.cxx'

This commit is contained in:
zhongjin 2022-11-30 23:18:19 +08:00
parent 21291723c6
commit 63ed923418

View File

@ -221,7 +221,9 @@ void FGCom::init()
_username = _username_node->getStringValue();
_password = _password_node->getStringValue();
_currentCommFrequency = 0.0;
_connected = false;
_currentCommFrequency = 0.0;
_maxRange = MAX_RANGE;
_minRange = MIN_RANGE;
@ -258,7 +260,9 @@ void FGCom::postinit()
std::string app = "FGFS-";
app += _version_node->getStringValue();
iaxc_set_callerid( _callsign_node->getStringValue().c_str(), app.c_str() );
//iaxc_set_callerid( _callsign_node->getStringValue().c_str(), app.c_str() );
iaxc_set_callerid("guest","FGCOM");
//iaxc_set_formats (IAXC_FORMAT_SPEEX, IAXC_FORMAT_ULAW|IAXC_FORMAT_SPEEX);