AP_MSP: fixed build warnings for MSP with AP_Periph

This commit is contained in:
Andrew Tridgell 2020-09-14 13:40:07 +10:00
parent 8c1bc94053
commit 4bfdd973a4

View File

@ -1,9 +1,16 @@
#pragma once #pragma once
#include <AP_HAL/AP_HAL.h>
#ifndef HAL_MSP_ENABLED #ifndef HAL_MSP_ENABLED
#define HAL_MSP_ENABLED !HAL_MINIMIZE_FEATURES #define HAL_MSP_ENABLED !HAL_MINIMIZE_FEATURES
#endif #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 <AP_HAL/UARTDriver.h> #include <AP_HAL/UARTDriver.h>
#include <AP_SerialManager/AP_SerialManager.h> #include <AP_SerialManager/AP_SerialManager.h>