AP_HAL_ChibiOS: Only include MAVLink when using the MAVLink debugging

This commit is contained in:
Michael du Breuil 2019-09-18 14:08:02 -07:00 committed by Randy Mackay
parent 5000891a76
commit 95bca05322
1 changed files with 1 additions and 2 deletions

View File

@ -30,12 +30,11 @@ extern AP_IOMCU iomcu;
#include "hwdef/common/stm32_util.h" #include "hwdef/common/stm32_util.h"
#ifndef CHIBIOS_ADC_MAVLINK_DEBUG #ifndef CHIBIOS_ADC_MAVLINK_DEBUG
#include <GCS_MAVLink/GCS_MAVLink.h>
// this allows the first 6 analog channels to be reported by mavlink for debugging purposes // this allows the first 6 analog channels to be reported by mavlink for debugging purposes
#define CHIBIOS_ADC_MAVLINK_DEBUG 0 #define CHIBIOS_ADC_MAVLINK_DEBUG 0
#endif #endif
#include <GCS_MAVLink/GCS_MAVLink.h>
#define ANLOGIN_DEBUGGING 0 #define ANLOGIN_DEBUGGING 0
// base voltage scaling for 12 bit 3.3V ADC // base voltage scaling for 12 bit 3.3V ADC