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