更新 'src/Network/fgcom.cxx'

This commit is contained in:
zhongjin 2022-12-06 23:42:22 +08:00
parent 19edc89613
commit 1a28b6f44b

View File

@ -43,6 +43,7 @@
#include <iaxclient.h> #include <iaxclient.h>
#define NUM_CALLS 4 #define NUM_CALLS 4
#define MAX_GND_RANGE 10.0 #define MAX_GND_RANGE 10.0
#define MAX_TWR_RANGE 50.0 #define MAX_TWR_RANGE 50.0
@ -241,6 +242,8 @@ void FGCom::init()
SG_LOG(SG_SOUND, SG_ALERT, "FGCom: init"); SG_LOG(SG_SOUND, SG_ALERT, "FGCom: init");
mesPopup("PTT按下请讲...",5);
} }
@ -636,7 +639,7 @@ void FGCom::valueChanged(SGPropertyNode *prop)
// ensure that we are on the right channel by calling setupCommFrequency // ensure that we are on the right channel by calling setupCommFrequency
//fgSetString("/sim/screen/red","PTT按下请讲..."); //fgSetString("/sim/screen/red","PTT按下请讲...");
mesPopup("PTT按下请讲...",5); //mesPopup("PTT按下请讲...",5);
setupCommFrequency(); setupCommFrequency();
iaxc_output_level_set(0.0); iaxc_output_level_set(0.0);