更新 'utils/fgcom/fgcom_external.cxx'

This commit is contained in:
zhongjin 2023-10-27 20:29:05 +08:00
parent a09b1b7ffd
commit b00a57116f

View File

@ -475,7 +475,7 @@ std::string computePhoneNumber(double freq, std::string icao, bool atis)
sprintf( exten, sprintf( exten,
"%02d%02d%02d%02d%02d%06d", "%02d%02d%02d%02d%02d%06d",
prefix, 01,
tmp[0], tmp[0],
tmp[1], tmp[1],
tmp[2], tmp[2],
@ -485,7 +485,7 @@ std::string computePhoneNumber(double freq, std::string icao, bool atis)
sprintf( exten, sprintf( exten,
"%02d%06d", "%02d%06d",
prefix, 01,
(int) (freq * 1000 + 0.5) ); (int) (freq * 1000 + 0.5) );
exten[8] = '\0'; exten[8] = '\0';
@ -497,6 +497,9 @@ std::string computePhoneNumber(double freq, std::string icao, bool atis)
_password.c_str(), _password.c_str(),
_server.c_str(), _server.c_str(),
exten); exten);
SG_LOG(SG_SOUND, SG_ALERT, "FGCom: computePhoneNumber:" << phoneNumber << " icao:" << icao);
return phoneNumber; return phoneNumber;
} }