From 15e0f689c21497c6686a87ef83a3804fb9637705 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Tue, 21 Nov 2023 14:15:44 +1100 Subject: [PATCH] AP_HAL_ChibiOS: correct AP_Filter defines - checking the build type is very rarely used and definitely not required here - fix boilerplate to conform to normal pattern of including the config header and #if'ing based on the _ENABLED directly after that --- libraries/AP_HAL_ChibiOS/hwdef/scripts/defaults_periph.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/scripts/defaults_periph.h b/libraries/AP_HAL_ChibiOS/hwdef/scripts/defaults_periph.h index 306ce7bc32..46e017f583 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/scripts/defaults_periph.h +++ b/libraries/AP_HAL_ChibiOS/hwdef/scripts/defaults_periph.h @@ -388,3 +388,7 @@ #ifndef AP_ICENGINE_ENABLED #define AP_ICENGINE_ENABLED 0 #endif + +#ifndef AP_FILTER_ENABLED +#define AP_FILTER_ENABLED 0 +#endif