AP_BattMonitor: add support for AP_Periph MPPT driver

This commit is contained in:
Tom Pittenger 2021-04-30 18:39:04 -07:00 committed by Andrew Tridgell
parent 8ada37edb8
commit adccc3deb7

View File

@ -5,7 +5,7 @@
#include <AP_CANManager/AP_CANSensor.h>
#ifndef HAL_MPPT_PACKETDIGITAL_CAN_ENABLE
#define HAL_MPPT_PACKETDIGITAL_CAN_ENABLE HAL_MAX_CAN_PROTOCOL_DRIVERS && BOARD_FLASH_SIZE > 1024
#define HAL_MPPT_PACKETDIGITAL_CAN_ENABLE (!defined(HAL_BUILD_AP_PERIPH) && HAL_MAX_CAN_PROTOCOL_DRIVERS && BOARD_FLASH_SIZE > 1024) || (defined(HAL_BUILD_AP_PERIPH) && defined(HAL_PERIPH_ENABLE_BATTERY_MPPT_PACKETDIGITAL))
#endif
#if HAL_MPPT_PACKETDIGITAL_CAN_ENABLE