AP_Terrain: allow AP_TERRAIN_AVAILABLE to be set in hwdef

Use AP_TERRAIN_AVAILABLE instead
This commit is contained in:
Peter Barker 2021-02-13 14:40:09 +11:00 committed by Andrew Tridgell
parent 98fb4fcbe7
commit de404b1999

View File

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