mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_Vehicle: solve for undefined vehicle object in herepro build
This commit is contained in:
parent
347872f6d6
commit
a5a29fe3ec
@ -65,7 +65,7 @@ const AP_Param::GroupInfo AP_Vehicle::var_info[] = {
|
||||
};
|
||||
|
||||
// reference to the vehicle. using AP::vehicle() here does not work on clang
|
||||
#if APM_BUILD_TYPE(APM_BUILD_UNKNOWN)
|
||||
#if APM_BUILD_TYPE(APM_BUILD_UNKNOWN) || APM_BUILD_TYPE(APM_BUILD_AP_Periph)
|
||||
AP_Vehicle& vehicle = *AP_Vehicle::get_singleton();
|
||||
#else
|
||||
extern AP_Vehicle& vehicle;
|
||||
|
Loading…
Reference in New Issue
Block a user