Skip to content

Commit

Permalink
adopt comment, use const char
Browse files Browse the repository at this point in the history
  • Loading branch information
olliw42 authored and raphaelcoeffic committed Jul 12, 2021
1 parent 621dddf commit 24f8554
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion radio/src/gui/colorlcd/model_setup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1026,6 +1026,8 @@ void onBindMenu(const char * result)

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

const char MODEL_NAME_EXTRA_CHARS[] = "_-.,:;<=>";

void ModelSetupPage::build(FormWindow * window)
{
FormGridLayout grid;
Expand All @@ -1034,7 +1036,7 @@ void ModelSetupPage::build(FormWindow * window)
// Model name
new StaticText(window, grid.getLabelSlot(), STR_MODELNAME);
auto text = new RadioTextEdit(window, grid.getFieldSlot(), g_model.header.name, sizeof(g_model.header.name),
0, "_-.,:;<=>");
0, MODEL_NAME_EXTRA_CHARS);
text->setChangeHandler([=] {
modelslist.load();
auto model = modelslist.getCurrentModel();
Expand Down

0 comments on commit 24f8554

Please sign in to comment.