From 4bfdd973a4ed22e0dd001c0aa353e5d656587924 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 14 Sep 2020 13:40:07 +1000 Subject: [PATCH] AP_MSP: fixed build warnings for MSP with AP_Periph --- libraries/AP_MSP/msp.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libraries/AP_MSP/msp.h b/libraries/AP_MSP/msp.h index 0db56b0308..074dc50d53 100644 --- a/libraries/AP_MSP/msp.h +++ b/libraries/AP_MSP/msp.h @@ -1,9 +1,16 @@ #pragma once +#include + #ifndef HAL_MSP_ENABLED #define HAL_MSP_ENABLED !HAL_MINIMIZE_FEATURES #endif +// define for enabling MSP sensor drivers +#ifndef HAL_MSP_SENSORS_ENABLED +#define HAL_MSP_SENSORS_ENABLED defined(HAL_MSP_ENABLED) && !HAL_MINIMIZE_FEATURES && !defined(HAL_BUILD_AP_PERIPH) +#endif + #include #include