AP_Vehicle: solve for undefined vehicle object in herepro build

This commit is contained in:
Siddharth Purohit 2021-06-20 11:48:34 +05:30 committed by Andrew Tridgell
parent 347872f6d6
commit a5a29fe3ec

View File

@ -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;