1
0
Fork 0

[swift] Fix frequency casting regression

This commit is contained in:
Lars Toenning 2020-02-23 20:57:30 +01:00 committed by James Turner
parent f4b60ccd90
commit 34915125a1

View file

@ -160,23 +160,23 @@ bool CService::getAllWheelsOnGround() const
}
int CService::getCom1Active() const
{
return (int)com1ActiveNode->getDoubleValue() * 1000;
{
return (int)(com1ActiveNode->getDoubleValue() * 1000);
}
int CService::getCom1Standby() const
{
return (int)com1StandbyNode->getDoubleValue() * 1000;
return (int)(com1StandbyNode->getDoubleValue() * 1000);
}
int CService::getCom2Active() const
{
return (int)com2ActiveNode->getDoubleValue() * 1000;
return (int)(com2ActiveNode->getDoubleValue() * 1000);
}
int CService::getCom2Standby() const
{
return (int)com2StandbyNode->getDoubleValue() * 1000;
return (int)(com2StandbyNode->getDoubleValue() * 1000);
}
int CService::getTransponderCode() const