fix: inconsistency between SD play value, model custom script screen and value widget (#4391)

Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
This commit is contained in:
Michael
2024-07-26 07:53:52 +10:00
committed by GitHub
co-authored by Peter Feerick
parent 533c13178a
commit 326c58a7fd
2 changed files with 7 additions and 1 deletions
@@ -157,7 +157,7 @@ class ScriptEditWindow : public Page
COLOR_THEME_PRIMARY1);
lbl->padLeft(PAD_LARGE);
new DynamicNumber<int16_t>(
line, rect_t{}, [=]() { return calcRESXto1000(so->value); });
line, rect_t{}, [=]() { return calcRESXto1000(so->value); }, PREC1);
}
}
}
+6
View File
@@ -136,6 +136,12 @@ class ValueWidget : public Widget
TimerOptions timerOptions;
timerOptions.options = SHOW_TIME;
valueTxt = getTimerString(tme, timerOptions);
#if defined(LUA_INPUTS)
}
else if (field >= MIXSRC_FIRST_LUA && field <= MIXSRC_LAST_LUA) {
valueTxt =
getSourceCustomValueString(field, calcRESXto1000(getValue(field)), valueFlags | PREC1);
#endif
} else {
valueTxt =
getSourceCustomValueString(field, getValue(field), valueFlags);