fix(radio): inconsistent display for sub trim in outputs, bold indicators for bw128 (#6064)

This commit is contained in:
philmoz
2025-04-10 10:08:45 +10:00
committed by GitHub
parent d4b475d877
commit cf8893f3c0
3 changed files with 45 additions and 48 deletions
@@ -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,
+6 -1
View File
@@ -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);