fix(radio): value calculation when GV used as source in weight/offset changed from 2.10 (#6250)

This commit is contained in:
philmoz
2025-05-14 08:41:27 +10:00
committed by GitHub
parent 04f3f151b0
commit dc156f22b4
+2 -1
View File
@@ -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);
}