mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
AP_Terrain: allow AP_TERRAIN_AVAILABLE to be set in hwdef
Use AP_TERRAIN_AVAILABLE instead
This commit is contained in:
parent
98fb4fcbe7
commit
de404b1999
@ -19,11 +19,13 @@
|
||||
#include <AP_Common/Location.h>
|
||||
#include <AP_Filesystem/AP_Filesystem_Available.h>
|
||||
|
||||
#ifndef AP_TERRAIN_AVAILABLE
|
||||
#if HAVE_FILESYSTEM_SUPPORT && defined(HAL_BOARD_TERRAIN_DIRECTORY)
|
||||
#define AP_TERRAIN_AVAILABLE 1
|
||||
#else
|
||||
#define AP_TERRAIN_AVAILABLE 0
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if AP_TERRAIN_AVAILABLE
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user