AP_RCMapper: exclude body of AP_RCMapper based on AP_RCMAPPER_ENABLED

This commit is contained in:
Peter Barker 2024-04-16 21:07:18 +10:00 committed by Andrew Tridgell
parent dc692f7169
commit b367fd0c1e
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,7 @@
#include "AP_RCMapper_config.h"
#if AP_RCMAPPER_ENABLED
#include <AP_HAL/AP_HAL.h> #include <AP_HAL/AP_HAL.h>
#include "AP_RCMapper.h" #include "AP_RCMapper.h"
@ -75,3 +79,5 @@ RCMapper::RCMapper(void)
RCMapper *AP::rcmap() { RCMapper *AP::rcmap() {
return RCMapper::get_singleton(); return RCMapper::get_singleton();
} }
#endif // AP_RCMAPPER_ENABLED

View File

@ -1,5 +1,7 @@
#pragma once #pragma once
#include <AP_HAL/AP_HAL_Boards.h>
#ifndef AP_RCMAPPER_ENABLED #ifndef AP_RCMAPPER_ENABLED
#define AP_RCMAPPER_ENABLED 1 #define AP_RCMAPPER_ENABLED 1
#endif #endif