Skip to content

Commit

Permalink
AP_RCMapper: exclude body of AP_RCMapper based on AP_RCMAPPER_ENABLED
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker authored and tridge committed Apr 17, 2024
1 parent dc692f7 commit b367fd0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libraries/AP_RCMapper/AP_RCMapper.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#include "AP_RCMapper_config.h"

#if AP_RCMAPPER_ENABLED

#include <AP_HAL/AP_HAL.h>
#include "AP_RCMapper.h"

Expand Down Expand Up @@ -75,3 +79,5 @@ RCMapper::RCMapper(void)
RCMapper *AP::rcmap() {
return RCMapper::get_singleton();
}

#endif // AP_RCMAPPER_ENABLED
2 changes: 2 additions & 0 deletions libraries/AP_RCMapper/AP_RCMapper_config.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#pragma once

#include <AP_HAL/AP_HAL_Boards.h>

#ifndef AP_RCMAPPER_ENABLED
#define AP_RCMAPPER_ENABLED 1
#endif

0 comments on commit b367fd0

Please sign in to comment.