diff --git a/Tools/autotest/test_build_options.py b/Tools/autotest/test_build_options.py index 67294a9bd125ed..d011c451816bed 100755 --- a/Tools/autotest/test_build_options.py +++ b/Tools/autotest/test_build_options.py @@ -342,6 +342,7 @@ def define_is_whitelisted_for_feature_in_code(self, target, define): if target.lower() in ["blimp", "antennatracker", "sub"]: # no OSD on Sub/blimp/tracker feature_define_whitelist.add(r'OSD_ENABLED') + feature_define_whitelist.add(r'OSD_PARAM_ENABLED') # AP_OSD is not instantiated, , so no MSP backend: feature_define_whitelist.add(r'HAL_WITH_MSP_DISPLAYPORT') # camera instantiated in specific vehicles: diff --git a/Tools/scripts/build_options.py b/Tools/scripts/build_options.py index 9eaac3249fdb94..4f908820c3087d 100644 --- a/Tools/scripts/build_options.py +++ b/Tools/scripts/build_options.py @@ -113,7 +113,7 @@ def __init__(self, Feature('OSD', 'OSD', 'OSD_ENABLED', 'Enable OSD', 0, None), Feature('OSD', 'PLUSCODE', 'HAL_PLUSCODE_ENABLE', 'Enable PlusCode', 0, 'OSD'), - Feature('OSD', 'OSD_PARAM', 'OSD_PARAM_ENABLED', 'Enable OSD param', 0, 'OSD'), + Feature('OSD', 'OSD_PARAM', 'OSD_PARAM_ENABLED', 'Enable OSD param', 0, None), Feature('OSD', 'OSD_SIDEBARS', 'HAL_OSD_SIDEBAR_ENABLE', 'Enable Scrolling Sidebars', 0, 'OSD'), Feature('OSD', 'OSD_EXTENDED_LINK_STATS', 'AP_OSD_LINK_STATS_EXTENSIONS_ENABLED', 'Enable OSD panels with extended link stats data', 0, "OSD,RC_CRSF,MSP"), # noqa