Skip to content

Commit

Permalink
feat: add S.PORT status for external R9M module
Browse files Browse the repository at this point in the history
Fixes #1187
  • Loading branch information
raphaelcoeffic committed Oct 14, 2023
1 parent 6bb0c5e commit ff27271
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions radio/src/gui/colorlcd/module_setup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,15 @@ void ModuleWindow::updateModule()
auto line = newLine(&grid);
new StaticText(line, rect_t{}, STR_RF_POWER, 0, COLOR_THEME_PRIMARY1);
rfPower = new Choice(line, rect_t{}, 0, 0, GET_SET_DEFAULT(md->pxx.power));
line = newLine(&grid);
new StaticText(line, rect_t{}, STR_MODULE_TELEMETRY, 0, COLOR_THEME_PRIMARY1);
new DynamicText(line, rect_t{}, [=] () {
if (modulePortHasRx(moduleIdx)) {
return std::string(STR_MODULE_TELEM_ON);
} else {
return std::string(STR_DISABLE_INTERNAL);
}
});
}

#if defined(PXX2)
Expand Down

0 comments on commit ff27271

Please sign in to comment.