更新 'utils/fgcom/fgcom_external.cxx'
This commit is contained in:
@@ -475,7 +475,7 @@ std::string computePhoneNumber(double freq, std::string icao, bool atis)
|
||||
|
||||
sprintf( exten,
|
||||
"%02d%02d%02d%02d%02d%06d",
|
||||
prefix,
|
||||
01,
|
||||
tmp[0],
|
||||
tmp[1],
|
||||
tmp[2],
|
||||
@@ -485,7 +485,7 @@ std::string computePhoneNumber(double freq, std::string icao, bool atis)
|
||||
|
||||
sprintf( exten,
|
||||
"%02d%06d",
|
||||
prefix,
|
||||
01,
|
||||
(int) (freq * 1000 + 0.5) );
|
||||
exten[8] = '\0';
|
||||
|
||||
@@ -497,6 +497,9 @@ std::string computePhoneNumber(double freq, std::string icao, bool atis)
|
||||
_password.c_str(),
|
||||
_server.c_str(),
|
||||
exten);
|
||||
|
||||
SG_LOG(SG_SOUND, SG_ALERT, "FGCom: computePhoneNumber:" << phoneNumber << " icao:" << icao);
|
||||
|
||||
return phoneNumber;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user