更新 'src/Network/fgcom.cxx'

next
zhongjin 2 years ago
parent fc8724f97b
commit 8ce0f8300d

@ -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;

Loading…
Cancel
Save