Skip to content

Commit

Permalink
chore: Fix build when GVARS=NO (EdgeTX#3769)
Browse files Browse the repository at this point in the history
  • Loading branch information
philmoz authored and pfeerick committed Jul 6, 2023
1 parent d214962 commit b6ec8ec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions radio/src/gui/colorlcd/gvar_numberedit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ GVarNumberEdit::GVarNumberEdit(Window* parent, const rect_t& rect, int32_t vmin,

void GVarNumberEdit::switchGVarMode()
{
#if defined(GVARS)
if (modelGVEnabled()) {
int32_t value = getValue();
setValue(
Expand All @@ -106,6 +107,7 @@ void GVarNumberEdit::switchGVarMode()
// update field type based on value
update();
}
#endif
}

void GVarNumberEdit::setSuffix(std::string value)
Expand Down

0 comments on commit b6ec8ec

Please sign in to comment.