Browse Source

AP_MSP: fixed build warnings for MSP with AP_Periph

zr-v5.1
Andrew Tridgell 4 years ago
parent
commit
4bfdd973a4
  1. 7
      libraries/AP_MSP/msp.h

7
libraries/AP_MSP/msp.h

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

Loading…
Cancel
Save