1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-23 08:15:17 +03:00

[Taranis] Issue #554 - Constant used instead of hardcoded value

This commit is contained in:
Bertrand Songis 2014-01-27 17:30:50 +01:00
parent 80a6c4727d
commit b44fa1432e
2 changed files with 2 additions and 3 deletions

View file

@ -1776,8 +1776,7 @@ void menuModelFlightModesAll(uint8_t event)
for (uint8_t j=0; j<ITEM_PHASES_COUNT; j++) {
uint8_t attr = ((sub==k && posHorz==j) ? ((s_editMode>0) ? 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;

View file

@ -1695,7 +1695,7 @@ void setTrimValue(uint8_t phase, uint8_t idx, int trim)
phase = p;
}
else {
v.value = limit<int>(-500, trim - getTrimValue(p, idx), 500);
v.value = limit<int>(TRIM_EXTENDED_MIN, trim - getTrimValue(p, idx), TRIM_EXTENDED_MAX);
break;
}
}