Skip to content

Commit

Permalink
SITL: follow standard pattern for including ENABLED guards
Browse files Browse the repository at this point in the history
Signed-off-by: Rhys Mainwaring <[email protected]>
  • Loading branch information
srmainwaring authored and tpwrules committed Dec 15, 2024
1 parent 5b935a3 commit ee7376a
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 7 deletions.
4 changes: 3 additions & 1 deletion libraries/SITL/SIM_Airspeed_DLVR.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#include "SIM_Airspeed_DLVR.h"
#include "SIM_config.h"

#if AP_SIM_AIRSPEED_DLVR_ENABLED

#include "SIM_Airspeed_DLVR.h"

#include "SITL.h"

int SITL::Airspeed_DLVR::rdwr(I2C::i2c_rdwr_ioctl_data *&data)
Expand Down
4 changes: 3 additions & 1 deletion libraries/SITL/SIM_BattMonitor_SMBus_Maxell.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#include "SIM_BattMonitor_SMBus_Maxell.h"
#include "SIM_config.h"

#if AP_SIM_BATT_MONITOR_SMBUS_MAXELL_ENABLED

#include "SIM_BattMonitor_SMBus_Maxell.h"

SITL::Maxell::Maxell() :
SIM_BattMonitor_SMBus_Generic()
{
Expand Down
4 changes: 3 additions & 1 deletion libraries/SITL/SIM_BattMonitor_SMBus_Rotoye.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#include "SIM_BattMonitor_SMBus_Rotoye.h"
#include "SIM_config.h"

#if AP_SIM_BATT_MONITOR_SMBUS_ROTOYE_ENABLED

#include "SIM_BattMonitor_SMBus_Rotoye.h"

#include <AP_HAL/utility/sparse-endian.h>

SITL::Rotoye::Rotoye() :
Expand Down
4 changes: 3 additions & 1 deletion libraries/SITL/SIM_MS5525.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#include "SIM_MS5525.h"
#include "SIM_config.h"

#if AP_SIM_MS5525_ENABLED

#include "SIM_MS5525.h"

#include <SITL/SITL.h>

using namespace SITL;
Expand Down
4 changes: 3 additions & 1 deletion libraries/SITL/SIM_MS5611.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#include "SIM_MS5611.h"
#include "SIM_config.h"

#if AP_SIM_MS5611_ENABLED

#include "SIM_MS5611.h"

#include <SITL/SITL.h>

#include <stdio.h>
Expand Down
4 changes: 3 additions & 1 deletion libraries/SITL/SIM_Temperature_MCP9600.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#include "SIM_Temperature_MCP9600.h"
#include "SIM_config.h"

#if AP_SIM_TEMPERATURE_MCP9600_ENABLED

#include "SIM_Temperature_MCP9600.h"

using namespace SITL;

#include <GCS_MAVLink/GCS.h>
Expand Down
4 changes: 3 additions & 1 deletion libraries/SITL/SIM_Temperature_TSYS01.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#include "SIM_Temperature_TSYS01.h"
#include "SIM_config.h"

#if AP_SIM_TEMPERATURE_TSYS01_ENABLED

#include "SIM_Temperature_TSYS01.h"

#include <stdio.h>

constexpr const int32_t SITL::TSYS01::_k[5];
Expand Down

0 comments on commit ee7376a

Please sign in to comment.