1
0
Fork 0
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:
Damjan Adamic 2014-06-17 11:49:45 +02:00
parent bf511767ce
commit f99fc83993
2 changed files with 2 additions and 2 deletions

View file

@ -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;