Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker committed Aug 16, 2024
1 parent 24ed066 commit bc1a713
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Tools/autotest/test_build_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ def define_is_whitelisted_for_feature_in_code(self, target, define):
feature_define_whitelist.add('AP_WINCH_ENABLED')
feature_define_whitelist.add('AP_WINCH_DAIWA_ENABLED')
feature_define_whitelist.add('AP_WINCH_PWM_ENABLED')

if target.lower() != "plane":
# only on Plane:
feature_define_whitelist.add('AP_ICENGINE_ENABLED')
Expand Down Expand Up @@ -372,6 +373,11 @@ def define_is_whitelisted_for_feature_in_code(self, target, define):
feature_define_whitelist.add(r'AP_RELAY_ENABLED')
feature_define_whitelist.add(r'AP_RC_CHANNEL_AUX_FUNCTION_STRINGS_ENABLED')

if target.lower() == "plane":
feature_define_whitelist.add('AP_MOTORS_FRAME_DECA_ENABLED')
feature_define_whitelist.add('AP_MOTORS_FRAME_DODECAHEXA_ENABLED')
feature_define_whitelist.add('AP_MOTORS_FRAME_HEXA_ENABLED')

for some_re in feature_define_whitelist:
if re.match(some_re, define):
return True
Expand Down

0 comments on commit bc1a713

Please sign in to comment.