1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-15 20:35:17 +03:00
This commit is contained in:
3djc 2017-03-15 18:52:43 +01:00 committed by Bertrand Songis
parent 04d506b1e4
commit 8a84c215a9

View file

@ -74,7 +74,7 @@ int16_t getGVarValue(int8_t gv, int8_t fm)
int32_t getGVarValuePrec1(int8_t gv, int8_t fm)
{
int8_t mul;
uint8_t prec = g_model.gvars[gv].prec;
uint8_t prec = g_model.gvars[abs(gv)].prec;
if (prec == 0)
mul = 10;
else