diff --git a/libraries/AP_Terrain/AP_Terrain.h b/libraries/AP_Terrain/AP_Terrain.h index 0d907c5839..2321ba1350 100644 --- a/libraries/AP_Terrain/AP_Terrain.h +++ b/libraries/AP_Terrain/AP_Terrain.h @@ -18,11 +18,7 @@ #include #ifndef AP_TERRAIN_AVAILABLE -#if AP_FILESYSTEM_FILE_READING_ENABLED && defined(HAL_BOARD_TERRAIN_DIRECTORY) -#define AP_TERRAIN_AVAILABLE 1 -#else -#define AP_TERRAIN_AVAILABLE 0 -#endif +#define AP_TERRAIN_AVAILABLE AP_FILESYSTEM_FILE_READING_ENABLED #endif #if AP_TERRAIN_AVAILABLE