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