diff --git a/libraries/AP_RCMapper/AP_RCMapper.h b/libraries/AP_RCMapper/AP_RCMapper.h index bd93813123..7170a0712f 100644 --- a/libraries/AP_RCMapper/AP_RCMapper.h +++ b/libraries/AP_RCMapper/AP_RCMapper.h @@ -1,5 +1,9 @@ #pragma once +#include "AP_RCMapper_config.h" + +#if AP_RCMAPPER_ENABLED + #include #include #include @@ -52,3 +56,5 @@ namespace AP { RCMapper *rcmap(); }; + +#endif // AP_RCMAPPER_ENABLED diff --git a/libraries/AP_RCMapper/AP_RCMapper_config.h b/libraries/AP_RCMapper/AP_RCMapper_config.h new file mode 100644 index 0000000000..ad11cb1785 --- /dev/null +++ b/libraries/AP_RCMapper/AP_RCMapper_config.h @@ -0,0 +1,5 @@ +#pragma once + +#ifndef AP_RCMAPPER_ENABLED +#define AP_RCMAPPER_ENABLED 1 +#endif