fix(radio): inconsistent display for sub trim in outputs, bold indicators for bw128 (#6064)
This commit is contained in:
@@ -156,7 +156,7 @@ class OutputLineButton : public ListLineButton
|
||||
lv_label_set_text(max, s);
|
||||
|
||||
getValueOrGVarString(s, sizeof(s), output->offset, -LIMIT_STD_MAX,
|
||||
+LIMIT_STD_MAX, PREC1);
|
||||
+LIMIT_STD_MAX, PREC1, nullptr, 0, true);
|
||||
lv_label_set_text(offset, s);
|
||||
|
||||
lv_label_set_text_fmt(center, "%d%s", PPM_CENTER + output->ppmCenter,
|
||||
|
||||
@@ -131,7 +131,12 @@ void OutputEditWindow::buildBody(Window *form)
|
||||
auto off = new GVarNumberEdit(line, -LIMIT_STD_MAX, +LIMIT_STD_MAX,
|
||||
GET_SET_DEFAULT(output->offset), PREC1);
|
||||
off->setFastStep(20);
|
||||
off->setAccelFactor(8);
|
||||
off->setAccelFactor(16);
|
||||
off->setDisplayHandler([=](int value) {
|
||||
if (g_eeGeneral.ppmunit == PPM_US)
|
||||
value = value * 128 / 25;
|
||||
return formatNumberAsString(value, PREC1);
|
||||
});
|
||||
|
||||
// Min
|
||||
line = form->newLine(grid);
|
||||
|
||||
Reference in New Issue
Block a user