Skip to content

Commit

Permalink
AP_Terrain: create and use AP_Terrain_config.h
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker authored and tridge committed Sep 24, 2024
1 parent 4b1e187 commit 82ac0ea
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
7 changes: 1 addition & 6 deletions libraries/AP_Terrain/AP_Terrain.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,7 @@
*/
#pragma once

#include <AP_HAL/AP_HAL_Boards.h>
#include <AP_Filesystem/AP_Filesystem_config.h>

#ifndef AP_TERRAIN_AVAILABLE
#define AP_TERRAIN_AVAILABLE AP_FILESYSTEM_FILE_READING_ENABLED
#endif
#include "AP_Terrain_config.h"

#if AP_TERRAIN_AVAILABLE

Expand Down
8 changes: 8 additions & 0 deletions libraries/AP_Terrain/AP_Terrain_config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#pragma once

#include <AP_HAL/AP_HAL_Boards.h>
#include <AP_Filesystem/AP_Filesystem_config.h>

#ifndef AP_TERRAIN_AVAILABLE
#define AP_TERRAIN_AVAILABLE AP_FILESYSTEM_FILE_READING_ENABLED
#endif

0 comments on commit 82ac0ea

Please sign in to comment.