From 2ea33324a0c9fad5904f6a5c7f9c2cafbbeef6b9 Mon Sep 17 00:00:00 2001 From: Joshua Henderson Date: Thu, 27 Jan 2022 22:53:35 -0500 Subject: [PATCH] AP_Periph: add define for BARO_ENABLE --- Tools/AP_Periph/Parameters.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Tools/AP_Periph/Parameters.cpp b/Tools/AP_Periph/Parameters.cpp index 904a1f2e10..e81329f63a 100644 --- a/Tools/AP_Periph/Parameters.cpp +++ b/Tools/AP_Periph/Parameters.cpp @@ -33,6 +33,10 @@ extern const AP_HAL::HAL &hal; #define AP_PERIPH_ESC_TELEM_PORT_DEFAULT -1 #endif +#ifndef AP_PERIPH_BARO_ENABLE_DEFAULT +#define AP_PERIPH_BARO_ENABLE_DEFAULT 1 +#endif + #ifndef HAL_DEFAULT_MAV_SYSTEM_ID #define MAV_SYSTEM_ID 3 #else @@ -201,7 +205,7 @@ const AP_Param::Info AP_Periph_FW::var_info[] = { // @Description: Barometer Enable // @Values: 0:Disabled, 1:Enabled // @User: Standard - GSCALAR(baro_enable, "BARO_ENABLE", 1), + GSCALAR(baro_enable, "BARO_ENABLE", AP_PERIPH_BARO_ENABLE_DEFAULT), #endif #ifdef AP_PERIPH_HAVE_LED_WITHOUT_NOTIFY