fix(color): telemetry sensor settings may not be saved to model YAML file (#7131)

This commit is contained in:
philmoz
2026-02-26 11:25:57 +10:00
committed by GitHub
parent 009518a1a4
commit b3836d559f
@@ -346,6 +346,7 @@ class SensorSourceChoice : public SourceChoice
*source = newValue == MIXSRC_NONE
? 0
: (newValue - MIXSRC_FIRST_TELEM) / 3 + 1;
SET_DIRTY();
})
{
setAvailableHandler([=](int16_t value) {
@@ -663,6 +664,7 @@ class SensorEditWindow : public SubPage
if (sensor->custom.ratio != 0)
s = formatNumberAsString((sensor->custom.ratio * 1000) / 255, PREC1, 0, "", "%");
pct->setText(s);
SET_DIRTY();
},
PREC1);
num->setZeroText("-");