[swift] Fix frequency casting regression
This commit is contained in:
parent
f4b60ccd90
commit
34915125a1
1 changed files with 5 additions and 5 deletions
|
@ -161,22 +161,22 @@ bool CService::getAllWheelsOnGround() const
|
||||||
|
|
||||||
int CService::getCom1Active() const
|
int CService::getCom1Active() const
|
||||||
{
|
{
|
||||||
return (int)com1ActiveNode->getDoubleValue() * 1000;
|
return (int)(com1ActiveNode->getDoubleValue() * 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
int CService::getCom1Standby() const
|
int CService::getCom1Standby() const
|
||||||
{
|
{
|
||||||
return (int)com1StandbyNode->getDoubleValue() * 1000;
|
return (int)(com1StandbyNode->getDoubleValue() * 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
int CService::getCom2Active() const
|
int CService::getCom2Active() const
|
||||||
{
|
{
|
||||||
return (int)com2ActiveNode->getDoubleValue() * 1000;
|
return (int)(com2ActiveNode->getDoubleValue() * 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
int CService::getCom2Standby() const
|
int CService::getCom2Standby() const
|
||||||
{
|
{
|
||||||
return (int)com2StandbyNode->getDoubleValue() * 1000;
|
return (int)(com2StandbyNode->getDoubleValue() * 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
int CService::getTransponderCode() const
|
int CService::getTransponderCode() const
|
||||||
|
|
Loading…
Add table
Reference in a new issue