AP_Vehicle: Define APM_BUILD_DIRECTORY as UNKNOWN if not defined

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
This commit is contained in:
Patrick José Pereira 2020-09-24 10:54:54 -03:00 committed by Andrew Tridgell
parent af8542b5d6
commit 75e9550bce

View File

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