From 1655beeca9f0aecaaf05ee6cb2fa0af2fb637cd4 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 26 Aug 2021 08:24:11 +1000 Subject: [PATCH] AP_MSP: fixed build without MSP found by custom.ardupilot.org --- libraries/AP_MSP/msp.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_MSP/msp.h b/libraries/AP_MSP/msp.h index b2cf93cb9a..ebe66148f6 100644 --- a/libraries/AP_MSP/msp.h +++ b/libraries/AP_MSP/msp.h @@ -8,12 +8,12 @@ // 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) +#define HAL_MSP_SENSORS_ENABLED HAL_MSP_ENABLED && !HAL_MINIMIZE_FEATURES && !defined(HAL_BUILD_AP_PERIPH) #endif // define for enabling MSP DisplayPort #ifndef HAL_WITH_MSP_DISPLAYPORT -#define HAL_WITH_MSP_DISPLAYPORT defined(HAL_MSP_ENABLED) && !HAL_MINIMIZE_FEATURES && !defined(HAL_BUILD_AP_PERIPH) +#define HAL_WITH_MSP_DISPLAYPORT HAL_MSP_ENABLED && !HAL_MINIMIZE_FEATURES && !defined(HAL_BUILD_AP_PERIPH) #endif #include