Browse Source

AP_Vehicle: Define APM_BUILD_DIRECTORY as UNKNOWN if not defined

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
c415-sdk
Patrick José Pereira 5 years ago committed by Andrew Tridgell
parent
commit
75e9550bce
  1. 8
      libraries/AP_Vehicle/AP_Vehicle_Type.h

8
libraries/AP_Vehicle/AP_Vehicle_Type.h

@ -29,12 +29,12 @@
#define APM_BUILD_iofirmware 8 #define APM_BUILD_iofirmware 8
#define APM_BUILD_AP_Periph 9 #define APM_BUILD_AP_Periph 9
#ifndef APM_BUILD_DIRECTORY
#define APM_BUILD_DIRECTORY APM_BUILD_UNKNOWN
#endif
/* /*
using this macro catches cases where we try to check vehicle type on using this macro catches cases where we try to check vehicle type on
build systems that don't support it build systems that don't support it
*/ */
#ifdef APM_BUILD_DIRECTORY
#define APM_BUILD_TYPE(type) ((type) == APM_BUILD_DIRECTORY) #define APM_BUILD_TYPE(type) ((type) == APM_BUILD_DIRECTORY)
#else
#define APM_BUILD_TYPE(type) ((type) == APM_BUILD_UNKNOWN)
#endif

Loading…
Cancel
Save