From 340f33f2d43860884eb52ccf6b7f06990066cbac Mon Sep 17 00:00:00 2001 From: zhongjin Date: Tue, 6 Dec 2022 16:43:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'src/Network/fgcom.cxx'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Network/fgcom.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Network/fgcom.cxx b/src/Network/fgcom.cxx index 58dff51..5d3d535 100644 --- a/src/Network/fgcom.cxx +++ b/src/Network/fgcom.cxx @@ -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() );