Skip to content

Commit

Permalink
AP_OSD: hide disabled parameters in OSD var_info2
Browse files Browse the repository at this point in the history
  • Loading branch information
tridge authored and peterbarker committed Sep 7, 2021
1 parent 10cbd3f commit 8366a16
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libraries/AP_OSD/AP_OSD_Screen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1000,6 +1000,9 @@ const AP_Param::GroupInfo AP_OSD_Screen::var_info[] = {
};

const AP_Param::GroupInfo AP_OSD_Screen::var_info2[] = {
// duplicate of OSDn_ENABLE to ensure params are hidden when not enabled
AP_GROUPINFO_FLAGS("ENABLE", 2, AP_OSD_Screen, enabled, 0, AP_PARAM_FLAG_ENABLE | AP_PARAM_FLAG_HIDDEN),

// @Param: LINK_Q_EN
// @DisplayName: LINK_Q_EN
// @Description: Displays Receiver link quality
Expand Down

0 comments on commit 8366a16

Please sign in to comment.