更新 'src/Network/fgcom.cxx'
This commit is contained in:
@@ -354,6 +354,9 @@ double FGCom::getCurrentFrequencyKhz() const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void FGCom::setupCommFrequency(int channel) {
|
void FGCom::setupCommFrequency(int channel) {
|
||||||
|
|
||||||
|
SG_LOG(SG_SOUND, SG_INFO, "FGCom: setupCommFrequency " << channel);
|
||||||
|
|
||||||
if (channel < 1) {
|
if (channel < 1) {
|
||||||
if (_selected_comm_node != nullptr) {
|
if (_selected_comm_node != nullptr) {
|
||||||
channel = _selected_comm_node->getIntValue();
|
channel = _selected_comm_node->getIntValue();
|
||||||
@@ -363,7 +366,7 @@ void FGCom::setupCommFrequency(int channel) {
|
|||||||
if (channel < 1) {
|
if (channel < 1) {
|
||||||
if (_currentCallIdent != -1) {
|
if (_currentCallIdent != -1) {
|
||||||
iaxc_dump_call_number(_currentCallIdent);
|
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;
|
_currentCallIdent = -1;
|
||||||
}
|
}
|
||||||
_currentCommFrequency = 0.0;
|
_currentCommFrequency = 0.0;
|
||||||
|
|||||||
Reference in New Issue
Block a user