From f2cc1c501b492f2aec863b4fab84289955b087b0 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Sun, 9 Apr 2023 17:39:19 +1000 Subject: [PATCH] Tools: use AP_BEACON_ENABLED instead of BEACON_ENABLED --- Tools/scripts/build_options.py | 2 +- Tools/scripts/extract_features.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Tools/scripts/build_options.py b/Tools/scripts/build_options.py index 1b40d75316..b2ed18e10c 100644 --- a/Tools/scripts/build_options.py +++ b/Tools/scripts/build_options.py @@ -247,7 +247,7 @@ BUILD_OPTIONS = [ Feature('Sensors', 'TEMP_MCP9600', 'AP_TEMPERATURE_SENSOR_MCP9600_ENABLED', 'Enable Temp Sensor - MCP9600', 0, "TEMP"), Feature('Sensors', 'AIRSPEED', 'AP_AIRSPEED_ENABLED', 'Enable Airspeed Sensors', 1, None), # Default to enabled to not annoy Plane users # NOQA: E501 - Feature('Sensors', 'BEACON', 'BEACON_ENABLED', 'Enable Beacon', 0, None), + Feature('Sensors', 'BEACON', 'AP_BEACON_ENABLED', 'Enable Beacon', 0, None), Feature('Sensors', 'GPS_MOVING_BASELINE', 'GPS_MOVING_BASELINE', 'Enable GPS Moving Baseline', 0, None), Feature('Other', 'GyroFFT', 'HAL_GYROFFT_ENABLED', 'Enable In-Flight Gyro FFT calculations', 0, None), diff --git a/Tools/scripts/extract_features.py b/Tools/scripts/extract_features.py index 4278ff58a8..cf6e64cc76 100755 --- a/Tools/scripts/extract_features.py +++ b/Tools/scripts/extract_features.py @@ -58,7 +58,7 @@ class ExtractFeatures(object): ('AP_TEMPERATURE_SENSOR_ENABLED', 'AP_TemperatureSensor::AP_TemperatureSensor',), ('AP_TEMPERATURE_SENSOR_{type}_ENABLED', 'AP_TemperatureSensor_(?P.*)::update',), - ('BEACON_ENABLED', 'AP_Beacon::AP_Beacon',), + ('AP_BEACON_ENABLED', 'AP_Beacon::AP_Beacon',), ('HAL_TORQEEDO_ENABLED', 'AP_Torqeedo::AP_Torqeedo'), ('HAL_NAVEKF3_AVAILABLE', 'NavEKF3::NavEKF3',),