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:
parent
80a6c4727d
commit
b44fa1432e
2 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue