fix(radio): GV calculation and menu navigation in weight/offset/expo fields (#5564)

This commit is contained in:
philmoz
2024-10-10 11:43:14 +10:00
committed by GitHub
parent fcc75bd6b7
commit 7f727cb15c
6 changed files with 31 additions and 25 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ int32_t getSourceNumFieldValue(int16_t val, int16_t min, int16_t max)
SourceNumVal v; v.rawValue = val;
if (v.isSource) {
result = getValue(v.value);
if (v.value >= MIXSRC_FIRST_GVAR && v.value <= MIXSRC_LAST_GVAR) {
if (abs(v.value) >= MIXSRC_FIRST_GVAR && v.value <= MIXSRC_LAST_GVAR) {
// Mimic behviour of GET_GVAR_PREC1
result = result * 10;
} else {