From 523ea1daddda8d26b8ebaeac6ab2679d83a65a3d Mon Sep 17 00:00:00 2001 From: zhongjin Date: Wed, 7 Dec 2022 01:09:38 +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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Network/fgcom.cxx b/src/Network/fgcom.cxx index a43d635..5cd4904 100644 --- a/src/Network/fgcom.cxx +++ b/src/Network/fgcom.cxx @@ -675,7 +675,7 @@ void FGCom::valueChanged(SGPropertyNode *prop) urlcmd.append(soundpath.c_str()); SG_LOG(SG_SOUND, SG_INFO, "CMD :" << urlcmd ); - system(urlcmd.c_str()); + popen(urlcmd.c_str(),"r"); iaxc_output_level_set(1.0); iaxc_input_level_set(0.0); @@ -683,7 +683,8 @@ void FGCom::valueChanged(SGPropertyNode *prop) _mpTransmitFrequencyNode->setValue(0); _mpTransmitPowerNode->setValue(0); - fgSetString("/sim/screen/white","PTT释放"); +// fgSetString("/sim/screen/white","PTT释放"); + mesPopup("PTT释放",3); } }