From dc156f22b4f2cfeb7b43a6b57220f9e974fe4be0 Mon Sep 17 00:00:00 2001 From: philmoz Date: Wed, 14 May 2025 08:41:27 +1000 Subject: [PATCH] fix(radio): value calculation when GV used as source in weight/offset changed from 2.10 (#6250) --- radio/src/mixer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/radio/src/mixer.cpp b/radio/src/mixer.cpp index 730eb7b45..6783f0786 100644 --- a/radio/src/mixer.cpp +++ b/radio/src/mixer.cpp @@ -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); }