Skip to content

Commit

Permalink
test_build_options.py: exempt AP_AIRSPEED_NMEA_ENABLED from testing
Browse files Browse the repository at this point in the history
cpp file makes this only exist for Rover/Sub
  • Loading branch information
peterbarker committed Aug 10, 2024
1 parent 7866522 commit 6921808
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Tools/autotest/test_build_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,9 @@ def assert_feature_in_code(self, defines, feature):
'HAL_PERIPH_SUPPORT_LONG_CAN_PRINTF', # no symbol
'AP_DRONECAN_VOLZ_FEEDBACK_ENABLED', # broken, no subscriber
])
if target.lower() not in frozenset(["rover", "sub"]):
# only Rover and Sub get nmea airspeed
set.add('AP_AIRSPEED_NMEA_ENABLED')
if define not in compiled_in_feature_defines:
error = f"feature gated by {define} not compiled into ({target}); extract_features.py bug?"
if define in feature_define_whitelist:
Expand Down

0 comments on commit 6921808

Please sign in to comment.