From 34915125a17903a6165dc356085c57a6590ec121 Mon Sep 17 00:00:00 2001 From: Lars Toenning Date: Sun, 23 Feb 2020 20:57:30 +0100 Subject: [PATCH] [swift] Fix frequency casting regression --- src/Network/Swift/service.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Network/Swift/service.cpp b/src/Network/Swift/service.cpp index 0d72a4af3..27de5fee1 100644 --- a/src/Network/Swift/service.cpp +++ b/src/Network/Swift/service.cpp @@ -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