fix(color): Precision for V2 in TIMER LS (#2969)

This commit is contained in:
eshifri
2023-01-01 13:58:39 +10:00
committed by GitHub
parent 539b407b58
commit 346ac3ce51
@@ -162,7 +162,7 @@ class LogicalSwitchEditPage: public Page
new StaticText(logicalSwitchOneWindow, grid.getLabelSlot(), STR_V2, 0, COLOR_THEME_PRIMARY1);
timer = new NumberEdit(logicalSwitchOneWindow, grid.getFieldSlot(), -128, 122, GET_SET_DEFAULT(cs->v2));
timer->setDisplayHandler([](int32_t value) {
return std::to_string(lswTimerValue(value));
return formatNumberAsString(lswTimerValue(value), PREC1);
});
grid.nextLine();
}