From a00243dc5a311faa60ba9a7174d1776cb35c73af Mon Sep 17 00:00:00 2001 From: Huibean Date: Thu, 12 Nov 2020 16:43:29 +0800 Subject: [PATCH] SITL: fix copter sitl build on macos --- libraries/SITL/SIM_BattMonitor_SMBus_Rotoye.cpp | 1 + libraries/SITL/SIM_I2CDevice.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/libraries/SITL/SIM_BattMonitor_SMBus_Rotoye.cpp b/libraries/SITL/SIM_BattMonitor_SMBus_Rotoye.cpp index c4e9d85d08..94ef2082c8 100644 --- a/libraries/SITL/SIM_BattMonitor_SMBus_Rotoye.cpp +++ b/libraries/SITL/SIM_BattMonitor_SMBus_Rotoye.cpp @@ -1,4 +1,5 @@ #include "SIM_BattMonitor_SMBus_Rotoye.h" +#include SITL::Rotoye::Rotoye() : SIM_BattMonitor_SMBus_Generic() diff --git a/libraries/SITL/SIM_I2CDevice.cpp b/libraries/SITL/SIM_I2CDevice.cpp index 7cac846c10..0f352819d1 100644 --- a/libraries/SITL/SIM_I2CDevice.cpp +++ b/libraries/SITL/SIM_I2CDevice.cpp @@ -1,4 +1,5 @@ #include "SIM_I2CDevice.h" +#include void SITL::I2CRegisters::add_register(const char *name, uint8_t reg, int8_t mode) {