From 8366a1622cf8655672efde61537b1c6dec7e4f00 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 1 Sep 2021 08:26:22 +1000 Subject: [PATCH] AP_OSD: hide disabled parameters in OSD var_info2 --- libraries/AP_OSD/AP_OSD_Screen.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/AP_OSD/AP_OSD_Screen.cpp b/libraries/AP_OSD/AP_OSD_Screen.cpp index 34c868e9ba..6856d06e00 100644 --- a/libraries/AP_OSD/AP_OSD_Screen.cpp +++ b/libraries/AP_OSD/AP_OSD_Screen.cpp @@ -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