AP_PiccoloCAN: remove double-definition of HAL_PICCOLOCAN_ENABLED

also trust minimize_features.inc to remove this feature where not desired
This commit is contained in:
Peter Barker 2023-06-08 12:00:51 +10:00 committed by Andrew Tridgell
parent 5e68e473c9
commit 15dc15df3f
2 changed files with 1 additions and 6 deletions

View File

@ -29,11 +29,6 @@
#include "AP_PiccoloCAN_Servo.h"
#include <AP_EFI/AP_EFI_Currawong_ECU.h>
#ifndef HAL_PICCOLO_CAN_ENABLE
#define HAL_PICCOLO_CAN_ENABLE HAL_NUM_CAN_IFACES
#endif
#if HAL_PICCOLO_CAN_ENABLE
#define PICCOLO_MSG_RATE_HZ_MIN 1

View File

@ -22,7 +22,7 @@
#include <AP_CANManager/AP_CANManager.h>
#ifndef HAL_PICCOLO_CAN_ENABLE
#define HAL_PICCOLO_CAN_ENABLE (HAL_NUM_CAN_IFACES && !HAL_MINIMIZE_FEATURES)
#define HAL_PICCOLO_CAN_ENABLE HAL_NUM_CAN_IFACES
#endif
#if HAL_PICCOLO_CAN_ENABLE