更新 'src/Network/fgcom.cxx'

This commit is contained in:
zhongjin 2022-10-22 15:48:38 +08:00
parent fc8724f97b
commit 8ce0f8300d

View File

@ -354,6 +354,9 @@ double FGCom::getCurrentFrequencyKhz() const {
}
void FGCom::setupCommFrequency(int channel) {
SG_LOG(SG_SOUND, SG_INFO, "FGCom: setupCommFrequency " << channel);
if (channel < 1) {
if (_selected_comm_node != nullptr) {
channel = _selected_comm_node->getIntValue();
@ -363,7 +366,7 @@ void FGCom::setupCommFrequency(int channel) {
if (channel < 1) {
if (_currentCallIdent != -1) {
iaxc_dump_call_number(_currentCallIdent);
SG_LOG(SG_IO, SG_INFO, "FGCom: disconnect as channel 0 " << _currentCallIdent);
SG_LOG(SG_SOUND, SG_INFO, "FGCom: disconnect as channel 0 " << _currentCallIdent);
_currentCallIdent = -1;
}
_currentCommFrequency = 0.0;