Skip to content

Commit

Permalink
fix(colorlcd): Missing R9M Flex power option menu (#1880)
Browse files Browse the repository at this point in the history
* Update model_setup.cpp

Adds R9M Flex (ACCST, non ACCESS) Power option GUI menu item, which is currently missing.

* Update model_setup.cpp

* R9M Flex power option menu for colorlcd

Adds power selection menu for R9M Flex  (ACCST, pre 2019) on colorlcd radios. Tested working on a tx16s.
#1187

* Just test for FCC variants

Co-authored-by: Peter Feerick <[email protected]>
  • Loading branch information
Arvycka and pfeerick committed May 8, 2022
1 parent 47b1dbb commit 905d75e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion radio/src/gui/colorlcd/model_setup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1251,7 +1251,7 @@ class ModuleWindow : public FormGroup {
#endif

// R9M Power
if (isModuleR9M_FCC(moduleIdx)) {
if (isModuleR9M_FCC_VARIANT(moduleIdx)) {
new StaticText(this, grid.getLabelSlot(true), STR_RF_POWER, 0, COLOR_THEME_PRIMARY1);
new Choice(this, grid.getFieldSlot(), STR_R9M_FCC_POWER_VALUES, 0, R9M_FCC_POWER_MAX,
GET_SET_DEFAULT(g_model.moduleData[moduleIdx].pxx.power));
Expand Down

0 comments on commit 905d75e

Please sign in to comment.