mirror of
https://github.com/opentx/opentx.git
synced 2025-07-23 08:15:17 +03:00
Fixes #1264 - CFN_GVAR_CST_MAX is 500, int16_t is needed
This commit is contained in:
parent
bf511767ce
commit
f99fc83993
2 changed files with 2 additions and 2 deletions
|
@ -5128,7 +5128,7 @@ void menuModelCustomFunctions(uint8_t event)
|
|||
else if (func == FUNC_ADJUST_GVAR) {
|
||||
switch (CFN_GVAR_MODE(sd)) {
|
||||
case FUNC_ADJUST_GVAR_CONSTANT:
|
||||
val_displayed = (int8_t)CFN_PARAM(sd);
|
||||
val_displayed = (int16_t)CFN_PARAM(sd);
|
||||
val_min = -CFN_GVAR_CST_MAX; val_max = +CFN_GVAR_CST_MAX;
|
||||
lcd_outdezAtt(MODEL_CUSTOM_FUNC_3RD_COLUMN, y, val_displayed, attr|LEFT);
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue