更新 'src/Network/fgcom.cxx'
This commit is contained in:
parent
d0a64c78d2
commit
212d63ca37
@ -76,7 +76,7 @@ static void mesPopup(const std::string& message, int delay)
|
||||
SGPropertyNode_ptr args(new SGPropertyNode);
|
||||
args->setStringValue("label", message);
|
||||
args->setIntValue("delay", (delay) ? delay : 15);
|
||||
SG_LOG(SG_GENERAL, SG_ALERT, message);
|
||||
//SG_LOG(SG_GENERAL, SG_ALERT, message);
|
||||
globals->get_commands()->execute("show-message", args);
|
||||
}
|
||||
|
||||
@ -649,6 +649,7 @@ void FGCom::valueChanged(SGPropertyNode *prop)
|
||||
_mpTransmitFrequencyNode->setValue(_currentCallFrequency * 1000000);
|
||||
_mpTransmitPowerNode->setValue(1.0);
|
||||
|
||||
|
||||
SGPath soundpath( globals->get_fg_root() );
|
||||
soundpath.append("/Sounds/ptt.wav");
|
||||
|
||||
@ -658,7 +659,7 @@ void FGCom::valueChanged(SGPropertyNode *prop)
|
||||
|
||||
urlcmd.append(soundpath.c_str());
|
||||
//SG_LOG(SG_SOUND, SG_INFO, "CMD :" << urlcmd );
|
||||
system(urlcmd.c_str());
|
||||
//system(urlcmd.c_str());
|
||||
|
||||
}
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user