Browse Source

AP_Vehicle: Define APM_BUILD_DIRECTORY as UNKNOWN if not defined

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
zr-v5.1
Patrick José Pereira 4 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 @@ @@ -29,12 +29,12 @@
#define APM_BUILD_iofirmware 8
#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
build systems that don't support it
*/
#ifdef 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