AP_Vehicle: add AP_VEHICLE_ENABLED guards for Parameters.cpp

This commit is contained in:
Peter Barker 2024-02-13 15:15:48 +11:00 committed by Peter Barker
parent 5de4ac4258
commit 57b0a0db62
1 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,7 @@
#include "AP_Vehicle.h"
#if AP_VEHICLE_ENABLED
#include <AP_Param/AP_Param.h>
#include <StorageManager/StorageManager.h>
@ -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