From 1566000da532352059d9e8fd409a626e7196d28a Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 26 Oct 2022 21:41:33 +1100 Subject: [PATCH] AP_Baro: add missing includes compilation broken when transitive includes changed --- libraries/AP_Baro/AP_Baro_BMP280.cpp | 1 + libraries/AP_Baro/AP_Baro_BMP388.cpp | 1 + libraries/AP_Baro/AP_Baro_Backend.cpp | 1 + libraries/AP_Baro/AP_Baro_DPS280.cpp | 1 + libraries/AP_Baro/AP_Baro_FBM320.cpp | 1 + libraries/AP_Baro/AP_Baro_HIL.cpp | 1 + libraries/AP_Baro/AP_Baro_LPS2XH.h | 1 + libraries/AP_Baro/AP_Baro_SPL06.cpp | 1 + 8 files changed, 8 insertions(+) diff --git a/libraries/AP_Baro/AP_Baro_BMP280.cpp b/libraries/AP_Baro/AP_Baro_BMP280.cpp index 1eb2c1ab51..005000b169 100644 --- a/libraries/AP_Baro/AP_Baro_BMP280.cpp +++ b/libraries/AP_Baro/AP_Baro_BMP280.cpp @@ -16,6 +16,7 @@ #if AP_BARO_BMP280_ENABLED +#include #include extern const AP_HAL::HAL &hal; diff --git a/libraries/AP_Baro/AP_Baro_BMP388.cpp b/libraries/AP_Baro/AP_Baro_BMP388.cpp index e069a293d4..25ea7ab41e 100644 --- a/libraries/AP_Baro/AP_Baro_BMP388.cpp +++ b/libraries/AP_Baro/AP_Baro_BMP388.cpp @@ -17,6 +17,7 @@ #if AP_BARO_BMP388_ENABLED #include +#include extern const AP_HAL::HAL &hal; diff --git a/libraries/AP_Baro/AP_Baro_Backend.cpp b/libraries/AP_Baro/AP_Baro_Backend.cpp index 06ae436693..15c75b65a9 100644 --- a/libraries/AP_Baro/AP_Baro_Backend.cpp +++ b/libraries/AP_Baro/AP_Baro_Backend.cpp @@ -1,6 +1,7 @@ #include "AP_Baro_Backend.h" #include +#include extern const AP_HAL::HAL& hal; diff --git a/libraries/AP_Baro/AP_Baro_DPS280.cpp b/libraries/AP_Baro/AP_Baro_DPS280.cpp index 3dd6ad5527..5103fb20bc 100644 --- a/libraries/AP_Baro/AP_Baro_DPS280.cpp +++ b/libraries/AP_Baro/AP_Baro_DPS280.cpp @@ -22,6 +22,7 @@ #include #include +#include extern const AP_HAL::HAL &hal; diff --git a/libraries/AP_Baro/AP_Baro_FBM320.cpp b/libraries/AP_Baro/AP_Baro_FBM320.cpp index 60676e52a6..20b8edcd71 100644 --- a/libraries/AP_Baro/AP_Baro_FBM320.cpp +++ b/libraries/AP_Baro/AP_Baro_FBM320.cpp @@ -22,6 +22,7 @@ #include #include +#include extern const AP_HAL::HAL &hal; diff --git a/libraries/AP_Baro/AP_Baro_HIL.cpp b/libraries/AP_Baro/AP_Baro_HIL.cpp index f072e3cf45..985133e0b8 100644 --- a/libraries/AP_Baro/AP_Baro_HIL.cpp +++ b/libraries/AP_Baro/AP_Baro_HIL.cpp @@ -1,6 +1,7 @@ #include "AP_Baro.h" #include +#include extern const AP_HAL::HAL& hal; diff --git a/libraries/AP_Baro/AP_Baro_LPS2XH.h b/libraries/AP_Baro/AP_Baro_LPS2XH.h index 96e3a8dad3..52d84abb1b 100644 --- a/libraries/AP_Baro/AP_Baro_LPS2XH.h +++ b/libraries/AP_Baro/AP_Baro_LPS2XH.h @@ -7,6 +7,7 @@ #include #include #include +#include #define HAL_BARO_LPS25H_I2C_BUS 0 diff --git a/libraries/AP_Baro/AP_Baro_SPL06.cpp b/libraries/AP_Baro/AP_Baro_SPL06.cpp index 92fc19cf50..0ceb27dd95 100644 --- a/libraries/AP_Baro/AP_Baro_SPL06.cpp +++ b/libraries/AP_Baro/AP_Baro_SPL06.cpp @@ -17,6 +17,7 @@ #if AP_BARO_SPL06_ENABLED #include +#include extern const AP_HAL::HAL &hal;