From cf9b5d05a8256bfb0b50ba7357febbf0cbe66270 Mon Sep 17 00:00:00 2001 From: bsongis Date: Mon, 4 Aug 2014 11:29:35 +0200 Subject: [PATCH] Fixes #1568 --- companion/src/firmwares/er9x/er9xeeprom.cpp | 4 ++-- companion/src/firmwares/ersky9x/ersky9xeeprom.cpp | 4 ++-- companion/src/firmwares/gruvin9x/gruvin9xeeprom.cpp | 4 ++-- companion/src/firmwares/opentx/open9xStockeeprom.cpp | 8 ++++---- companion/src/firmwares/th9x/th9xeeprom.cpp | 4 ++-- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/companion/src/firmwares/er9x/er9xeeprom.cpp b/companion/src/firmwares/er9x/er9xeeprom.cpp index b65cbf7a7..1175c986b 100644 --- a/companion/src/firmwares/er9x/er9xeeprom.cpp +++ b/companion/src/firmwares/er9x/er9xeeprom.cpp @@ -138,8 +138,8 @@ t_Er9xLimitData::t_Er9xLimitData() t_Er9xLimitData::operator LimitData () { LimitData c9x; - c9x.min = min-100; - c9x.max = max+100; + c9x.min = 10*(min-100); + c9x.max = 10*(max+100); c9x.revert = revert; c9x.offset = offset; return c9x; diff --git a/companion/src/firmwares/ersky9x/ersky9xeeprom.cpp b/companion/src/firmwares/ersky9x/ersky9xeeprom.cpp index ddb94c0fd..a86e3f244 100644 --- a/companion/src/firmwares/ersky9x/ersky9xeeprom.cpp +++ b/companion/src/firmwares/ersky9x/ersky9xeeprom.cpp @@ -147,8 +147,8 @@ t_Ersky9xLimitData::t_Ersky9xLimitData() t_Ersky9xLimitData::operator LimitData () { LimitData c9x; - c9x.min = min-100; - c9x.max = max+100; + c9x.min = 10*(min-100); + c9x.max = 10*(max+100); c9x.revert = revert; c9x.offset = offset; return c9x; diff --git a/companion/src/firmwares/gruvin9x/gruvin9xeeprom.cpp b/companion/src/firmwares/gruvin9x/gruvin9xeeprom.cpp index ed4838f7e..617cc3566 100644 --- a/companion/src/firmwares/gruvin9x/gruvin9xeeprom.cpp +++ b/companion/src/firmwares/gruvin9x/gruvin9xeeprom.cpp @@ -201,8 +201,8 @@ t_Gruvin9xLimitData::t_Gruvin9xLimitData() t_Gruvin9xLimitData::operator LimitData () { LimitData c9x; - c9x.min = min-100; - c9x.max = max+100; + c9x.min = 10*(min-100); + c9x.max = 10*(max+100); c9x.revert = revert; c9x.offset = offset; return c9x; diff --git a/companion/src/firmwares/opentx/open9xStockeeprom.cpp b/companion/src/firmwares/opentx/open9xStockeeprom.cpp index 2876e2c45..a6a06e7cc 100644 --- a/companion/src/firmwares/opentx/open9xStockeeprom.cpp +++ b/companion/src/firmwares/opentx/open9xStockeeprom.cpp @@ -129,8 +129,8 @@ t_Open9xExpoData_v211::operator ExpoData () t_Open9xLimitData_v201::operator LimitData () { LimitData c9x; - c9x.min = min-100; - c9x.max = max+100; + c9x.min = 10*(min-100); + c9x.max = 10*(max+100); c9x.revert = revert; c9x.offset = offset; return c9x; @@ -139,8 +139,8 @@ t_Open9xLimitData_v201::operator LimitData () t_Open9xLimitData_v211::operator LimitData () { LimitData c9x; - c9x.min = min-100; - c9x.max = max+100; + c9x.min = 10*(min-100); + c9x.max = 10*(max+100); c9x.revert = revert; c9x.offset = offset; c9x.symetrical=symetrical; diff --git a/companion/src/firmwares/th9x/th9xeeprom.cpp b/companion/src/firmwares/th9x/th9xeeprom.cpp index 144c8bf4e..b6bd0c02b 100644 --- a/companion/src/firmwares/th9x/th9xeeprom.cpp +++ b/companion/src/firmwares/th9x/th9xeeprom.cpp @@ -124,8 +124,8 @@ t_Th9xLimitData::t_Th9xLimitData() t_Th9xLimitData::operator LimitData () { LimitData c9x; - c9x.min = min-100; - c9x.max = max+100; + c9x.min = 10*(min-100); + c9x.max = 10*(max+100); c9x.revert = revert; c9x.offset = offset; return c9x;