From 57b0a0db62639884877cdaaea9da31d969a0cf17 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Tue, 13 Feb 2024 15:15:48 +1100 Subject: [PATCH] AP_Vehicle: add AP_VEHICLE_ENABLED guards for Parameters.cpp --- libraries/AP_Vehicle/Parameters.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/AP_Vehicle/Parameters.cpp b/libraries/AP_Vehicle/Parameters.cpp index 328a25bdd7..7741d1ac0e 100644 --- a/libraries/AP_Vehicle/Parameters.cpp +++ b/libraries/AP_Vehicle/Parameters.cpp @@ -1,5 +1,7 @@ #include "AP_Vehicle.h" +#if AP_VEHICLE_ENABLED + #include #include @@ -22,3 +24,5 @@ void AP_Vehicle::load_parameters(AP_Int16 &format_version, const uint16_t expect // Load all auto-loaded EEPROM variables AP_Param::load_all(); } + +#endif // AP_VEHICLE_ENABLED