mirror of
https://github.com/opentx/opentx.git
synced 2025-07-18 22:05:10 +03:00
For All:
- GV1_XXX constants are now in myeeprom.h to be close to the mixer defines (they need to match to the defined types, e.g. needs to have enough bits) For Stock: - bugfix gvars not working for weight for stock transmitter For ARM based Transmitter: - limits offset now to 490 (instead of 4085) - limits for weight and offset can be easily changed in myeeprom.h, with defines #define GV_RANGE_WEIGHT 500 #define GV_RANGE_OFFSET 490 (be sure they are not bigger than something about 4000) No code cost
This commit is contained in:
parent
5337158911
commit
da277536b7
3 changed files with 33 additions and 6 deletions
|
@ -3077,7 +3077,7 @@ void gvarWeightItem(xcoord_t x, uint8_t y, MixData *md, uint8_t attr, uint8_t ev
|
|||
{
|
||||
u_int8int16_t weight;
|
||||
MD_WEIGHT_TO_UNION(md, weight);
|
||||
weight.word = GVAR_MENU_ITEM(x, y, weight.word, -500, 500, attr, 0, event);
|
||||
weight.word = GVAR_MENU_ITEM(x, y, weight.word, GV_RANGELARGE_WEIGHT_NEG, GV_RANGELARGE_WEIGHT, attr, 0, event);
|
||||
MD_UNION_TO_WEIGHT(weight, md);
|
||||
}
|
||||
|
||||
|
@ -3155,7 +3155,7 @@ void menuModelMixOne(uint8_t event)
|
|||
lcd_putsColumnLeft(COLUMN_X, y, NO_INDENT(STR_OFFSET));
|
||||
u_int8int16_t offset;
|
||||
MD_OFFSET_TO_UNION(md2, offset);
|
||||
offset.word = GVAR_MENU_ITEM(COLUMN_X+MIXES_2ND_COLUMN, y, offset.word, GV_RANGELARGE_NEG, GV_RANGELARGE, attr|LEFT, 0, event);
|
||||
offset.word = GVAR_MENU_ITEM(COLUMN_X+MIXES_2ND_COLUMN, y, offset.word, GV_RANGELARGE_OFFSET_NEG, GV_RANGELARGE_OFFSET, attr|LEFT, 0, event);
|
||||
MD_UNION_TO_OFFSET(offset, md2);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue