更新 'src/Network/fgcom.cxx'

next
zhongjin 2 years ago
parent f945078ae4
commit 340f33f2d4

@ -639,13 +639,14 @@ void FGCom::valueChanged(SGPropertyNode *prop)
if (prop == _ptt_node && _enabled) {
if (_ptt_node->getIntValue()) {
// ensure that we are on the right channel by calling setupCommFrequency
fgSetString("/sim/screen/red","PTT按下请讲...");
setupCommFrequency();
iaxc_output_level_set(0.0);
iaxc_input_level_set(_micLevel_node->getFloatValue()); //0.0 = min , 1.0 = max
_mpTransmitFrequencyNode->setValue(_currentCallFrequency * 1000000);
_mpTransmitPowerNode->setValue(1.0);
fgSetString("/sim/screen/white","PTT按下请讲...");
SGPath soundpath( globals->get_fg_root() );

Loading…
Cancel
Save