Skip to content

Commit 5f8a655

Browse files
Ryanf55peterbarker
authored andcommitted
AP_Soaring: Move define to config file
* Prepare for more compile time features in soaring Signed-off-by: Ryan Friedman <[email protected]>
1 parent 4360a7e commit 5f8a655

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

libraries/AP_Soaring/AP_Soaring.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,7 @@
99

1010
#pragma once
1111

12-
#include <AP_HAL/AP_HAL_Boards.h>
13-
14-
#ifndef HAL_SOARING_ENABLED
15-
#define HAL_SOARING_ENABLED 1
16-
#endif
17-
12+
#include "AP_Soaring_config.h"
1813
#if HAL_SOARING_ENABLED
1914

2015
#include <AP_Param/AP_Param.h>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#include <AP_HAL/AP_HAL_Boards.h>
2+
3+
#ifndef HAL_SOARING_ENABLED
4+
#define HAL_SOARING_ENABLED 1
5+
#endif

0 commit comments

Comments
 (0)