From 9a35b4d7a441e520e33da77cf9d52d97ded73d2e Mon Sep 17 00:00:00 2001 From: Jacob Walser Date: Wed, 12 Apr 2017 22:27:34 -0400 Subject: [PATCH] Sub: Dont include AC_Rally if it's not enabled --- ArduSub/Sub.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ArduSub/Sub.h b/ArduSub/Sub.h index 7617dd71e1..78dc36dfed 100644 --- a/ArduSub/Sub.h +++ b/ArduSub/Sub.h @@ -47,7 +47,6 @@ #include #include #include // Mission command library -#include // Rally point library #include // PID library #include // PID library (2-axis) #include // P library @@ -107,6 +106,10 @@ #include // Stop at fence library #endif +#if AC_RALLY == ENABLED +#include // Rally point library +#endif + // Local modules #include "Parameters.h"