Skip to content

Commit

Permalink
fix: inconsistency between SD play value, model custom script screen …
Browse files Browse the repository at this point in the history
…and value widget (#4391)

Co-authored-by: Peter Feerick <[email protected]>
  • Loading branch information
mha1 and pfeerick authored Jul 25, 2024
1 parent 533c131 commit 326c58a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion radio/src/gui/colorlcd/model_mixer_scripts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
Expand Down
6 changes: 6 additions & 0 deletions radio/src/gui/colorlcd/widgets/value.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 326c58a

Please sign in to comment.