Add setters for DynamicNumber prefix and suffix texts (#90)

required by RX stat labeling on range check, rf tuning, low/critical warning pages
This commit is contained in:
Michael
2023-05-07 14:05:50 +10:00
committed by GitHub
parent 51ce75f10e
commit c6188af631
+10
View File
@@ -178,6 +178,16 @@ class DynamicNumber : public StaticText
}
}
void setPrefix(const char * value) {
prefix = value;
updateText();
}
void setSuffix(const char * value) {
suffix = value;
updateText();
}
protected:
T value = 0;
std::function<T()> numberHandler;