From b44fa1432edd8321c249d04041bcbf35091e436d Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Mon, 27 Jan 2014 17:30:50 +0100 Subject: [PATCH] [Taranis] Issue #554 - Constant used instead of hardcoded value --- radio/src/gui/menu_model.cpp | 3 +-- radio/src/opentx.cpp | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/radio/src/gui/menu_model.cpp b/radio/src/gui/menu_model.cpp index 2520b5f90..0bce00e1c 100644 --- a/radio/src/gui/menu_model.cpp +++ b/radio/src/gui/menu_model.cpp @@ -1776,8 +1776,7 @@ void menuModelFlightModesAll(uint8_t event) for (uint8_t j=0; j0) ? BLINK|INVERS : INVERS) : 0); uint8_t active = (attr && (s_editMode>0 || p1valdiff)) ; - switch(j) - { + switch (j) { case ITEM_PHASES_NAME: editName(4*FW-1, y, p->name, sizeof(p->name), event, attr); break; diff --git a/radio/src/opentx.cpp b/radio/src/opentx.cpp index 5ada1d63e..2c63a88e4 100644 --- a/radio/src/opentx.cpp +++ b/radio/src/opentx.cpp @@ -1695,7 +1695,7 @@ void setTrimValue(uint8_t phase, uint8_t idx, int trim) phase = p; } else { - v.value = limit(-500, trim - getTrimValue(p, idx), 500); + v.value = limit(TRIM_EXTENDED_MIN, trim - getTrimValue(p, idx), TRIM_EXTENDED_MAX); break; } }