From 15dc15df3f97c299f23684fb3421b7342a993407 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 8 Jun 2023 12:00:51 +1000 Subject: [PATCH] AP_PiccoloCAN: remove double-definition of HAL_PICCOLOCAN_ENABLED also trust minimize_features.inc to remove this feature where not desired --- libraries/AP_PiccoloCAN/AP_PiccoloCAN.h | 5 ----- libraries/AP_PiccoloCAN/AP_PiccoloCAN_Device.h | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/libraries/AP_PiccoloCAN/AP_PiccoloCAN.h b/libraries/AP_PiccoloCAN/AP_PiccoloCAN.h index 96a103077d..906cb772d0 100644 --- a/libraries/AP_PiccoloCAN/AP_PiccoloCAN.h +++ b/libraries/AP_PiccoloCAN/AP_PiccoloCAN.h @@ -29,11 +29,6 @@ #include "AP_PiccoloCAN_Servo.h" #include - -#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 diff --git a/libraries/AP_PiccoloCAN/AP_PiccoloCAN_Device.h b/libraries/AP_PiccoloCAN/AP_PiccoloCAN_Device.h index 82c9bbb43c..e0b3cd9f16 100644 --- a/libraries/AP_PiccoloCAN/AP_PiccoloCAN_Device.h +++ b/libraries/AP_PiccoloCAN/AP_PiccoloCAN_Device.h @@ -22,7 +22,7 @@ #include #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