From aa3642d9defe960fd60c8eb890a819ae05484b74 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 31 Jan 2020 10:52:45 +1100 Subject: [PATCH] AP_Param: save 7k flash for HAL_MINIMIZE_FEATURES boards --- libraries/AP_Param/AP_Param.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libraries/AP_Param/AP_Param.h b/libraries/AP_Param/AP_Param.h index 2749f99175..f38eb89f06 100644 --- a/libraries/AP_Param/AP_Param.h +++ b/libraries/AP_Param/AP_Param.h @@ -39,7 +39,11 @@ maximum size of embedded parameter file */ #ifndef AP_PARAM_MAX_EMBEDDED_PARAM -#define AP_PARAM_MAX_EMBEDDED_PARAM 8192 +#if HAL_MINIMIZE_FEATURES +# define AP_PARAM_MAX_EMBEDDED_PARAM 1024 +#else +# define AP_PARAM_MAX_EMBEDDED_PARAM 8192 +#endif #endif /*