From c09c86868f932ab5f47752b0f9825f5d105dae74 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 3 Sep 2014 13:28:04 +1000 Subject: [PATCH] AP_Vehicle: make APM_BUILD_TYPE() valid under arduino IDE --- libraries/AP_Vehicle/AP_Vehicle.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/AP_Vehicle/AP_Vehicle.h b/libraries/AP_Vehicle/AP_Vehicle.h index b7fff72649..80674c072b 100644 --- a/libraries/AP_Vehicle/AP_Vehicle.h +++ b/libraries/AP_Vehicle/AP_Vehicle.h @@ -59,6 +59,7 @@ public: #define APM_BUILD_ArduCopter 2 #define APM_BUILD_ArduPlane 3 #define APM_BUILD_AntennaTracker 4 +#define APM_BUILD_UNKNOWN 5 /* using this macro catches cases where we try to check vehicle type on @@ -66,6 +67,8 @@ public: */ #ifdef APM_BUILD_DIRECTORY #define APM_BUILD_TYPE(type) ((type) == APM_BUILD_DIRECTORY) +#else +#define APM_BUILD_TYPE(type) ((type) == APM_BUILD_UNKNOWN) #endif #endif // AP_VEHICLE_H