fix(radio): value calculation when GV used as source in weight/offset changed from 2.10 (#6250)
This commit is contained in:
+2
-1
@@ -63,7 +63,8 @@ int32_t getSourceNumFieldValue(int16_t val, int16_t min, int16_t max)
|
||||
result = getValue(v.value);
|
||||
if (abs(v.value) >= MIXSRC_FIRST_GVAR && v.value <= MIXSRC_LAST_GVAR) {
|
||||
// Mimic behviour of GET_GVAR_PREC1
|
||||
result = result * 10;
|
||||
if (g_model.gvars[abs(v.value) - MIXSRC_FIRST_GVAR].prec == 0)
|
||||
result = result * 10;
|
||||
} else {
|
||||
result = calcRESXto1000(result);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user