From b19f2acb35b305d3edbfff3ad0d8044782883199 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 14 Apr 2023 13:47:52 +1000 Subject: [PATCH] AP_RobotisServo: don't check MINIMIZE_FEATURES when also checking BOARD_FLASH_SIZE we have an assertion that no board with >1MB of flash is minimized --- libraries/AP_RobotisServo/AP_RobotisServo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_RobotisServo/AP_RobotisServo.h b/libraries/AP_RobotisServo/AP_RobotisServo.h index 6bf9d6cd66..ff23b71279 100644 --- a/libraries/AP_RobotisServo/AP_RobotisServo.h +++ b/libraries/AP_RobotisServo/AP_RobotisServo.h @@ -21,7 +21,7 @@ #include #ifndef AP_ROBOTISSERVO_ENABLED -#define AP_ROBOTISSERVO_ENABLED (!HAL_MINIMIZE_FEATURES && BOARD_FLASH_SIZE > 1024) +#define AP_ROBOTISSERVO_ENABLED BOARD_FLASH_SIZE > 1024 #endif #if AP_ROBOTISSERVO_ENABLED