Skip to content

Commit 24f8554

Browse files
olliw42raphaelcoeffic
authored andcommitted
adopt comment, use const char
1 parent 621dddf commit 24f8554

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

radio/src/gui/colorlcd/model_setup.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1026,6 +1026,8 @@ void onBindMenu(const char * result)
10261026

10271027
const char * STR_TIMER_MODES[] = {"OFF", "ON", "Start", "Throttle", "Throttle %", "Throttle Start"};
10281028

1029+
const char MODEL_NAME_EXTRA_CHARS[] = "_-.,:;<=>";
1030+
10291031
void ModelSetupPage::build(FormWindow * window)
10301032
{
10311033
FormGridLayout grid;
@@ -1034,7 +1036,7 @@ void ModelSetupPage::build(FormWindow * window)
10341036
// Model name
10351037
new StaticText(window, grid.getLabelSlot(), STR_MODELNAME);
10361038
auto text = new RadioTextEdit(window, grid.getFieldSlot(), g_model.header.name, sizeof(g_model.header.name),
1037-
0, "_-.,:;<=>");
1039+
0, MODEL_NAME_EXTRA_CHARS);
10381040
text->setChangeHandler([=] {
10391041
modelslist.load();
10401042
auto model = modelslist.getCurrentModel();

0 commit comments

Comments
 (0)