mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
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:
parent
af8542b5d6
commit
75e9550bce
@ -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…
Reference in New Issue
Block a user